ms-access

Trying to tailor a query for search functionality without vba

怎甘沉沦 提交于 2019-12-24 12:35:15
问题 I'm trying to create a pretty bare-bones search tool to pull records from a table ("ApplicationTable"). The user is presented with a form containing a number of textbox controls, each one corresponding to a field in the table (ApplicationID, FirstName, LastName, etc.) They enter data into whatever field(s) they wish, then click a button. The search should return each record for which a corresponding field contains the search parameter, and ignores any search field that is blank. Data is

Selecting Loan Id for Mixed Scenarios in MS Access

…衆ロ難τιáo~ 提交于 2019-12-24 12:21:55
问题 Here is a sample of my Loan table: Loanno Balance amount LoanID 1001045 308731.770000 1 1001045 2007700.740000 2 1001045 3087318905.770 3 1001045 308731.770000 4 1001046 306589.67 1 1001046 456321.23 1 1001046 6932542.89 1 1001047 582563.56 2 1001047 965421.34 2 If for a Loanno the LoanId is different, i.e (1,2,3,4,5), then I have to populate a field called LoanIndex as '6'. Otherwise if for a Loannumber the Loanid values are all the same, i.e all 1's or all 2's, then I have to populate

convert attribute-centric xml to element-centric

孤者浪人 提交于 2019-12-24 12:20:17
问题 Is there a way to convert following XML file to element-centric file? Perhaps using an online tool? Without requiring to use VB anything? I need to import this xml to Access, but unable to do so because Access requires element-centric xml. <?xml version="1.0"?> <?xml-stylesheet type="text/xsl" href="invoices.xsl"?> <invoices> <invoice number="25" date="February 28, 2001"> <patient firstname="Jeff" familyname="Smith" SSN="123456789"> <phone type="home" number="123-4567890"/> <phone number="321

How to use take a Photo in MS-Access in Vista or later - maybe MediaCapture or DirectShow

旧巷老猫 提交于 2019-12-24 12:17:56
问题 How to use MediaCapture or DirectShow API in MS-Access? As WIA is outdated for cameras. WIA examples exist but not MediaCapture or DirectShow I almost never use VBA but need to capture a photo using Access 2013. I have found a .net example by MS that looks like it will do want I need, how to get it to work in VBA in Access? ' Using Windows.Media.Capture.CameraCaptureUI API to capture a photo Dim dialog As New CameraCaptureUI() Dim file As StorageFile = Await dialog.CaptureFileAsync

Syntax error (missing operator) in query expression

微笑、不失礼 提交于 2019-12-24 12:14:11
问题 I am working with C# Form based application with Access as DB. And getting this error Syntax error (missing operator) in query expression 'Request_Data = 12/15/2010 12:00:00 AM AND User_ID = '1''. On this query. String sql = "Select * From Requests WHERE Request_Data = 12/15/2010 12:00:00 AM AND User_ID = '1'"; What's wrong in this query? 回答1: I'm guessing you need quotes hashes around the datetime: String sql = "Select * From Requests WHERE Request_Data = #12/15/2010 12:00:00 AM# AND User_ID

How to write connection string when ms access database is password protected?

◇◆丶佛笑我妖孽 提交于 2019-12-24 12:05:50
问题 My Code is <add name="conn" connectionString="Provider=Microsoft.ACE.OLEDB.12.0;Data Source=D:\Db\abc.mdb"/> My Database Password is 123 How to write full connection String? 回答1: Example as per connectionstrings.com: Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\myFolder\myAccessFile.mdb; Jet OLEDB:Database Password=MyDbPassword; Add this to the connection string according to the requirement. Ref: https://www.connectionstrings.com/access/ 来源: https://stackoverflow.com/questions/32152542

Need SQL to update table with data from another table IF numbers match

醉酒当歌 提交于 2019-12-24 12:05:37
问题 I have this function below that is letting user choose excel file and it imports the data into a table(MyTable). Its just a single column excel file. The table it imports into contains 2 columns(F1,F2). I need the DoCmd.RunSQL command to get the following info into that 2nd column. MyTable.F1 is the OEM part number I need to take that number and compare it to 2 columns (OEMPartNumer, OEMSub) in a (JDSubs) table i have setup If it finds a match i need it to compare those 2 matches from (JDSubs

Conditional formatting on Access form looking up a value

余生长醉 提交于 2019-12-24 11:44:08
问题 I've created a form within Access which uses a cross-tab query as its data source. The column headings for the query are 1, 2, 3, 4 and 5 representing week numbers. The values display items such as 3/3 = 100.00% or 0/13 = 0.00% or 3/14 = 21.00% . I've added conditional formatting to the text boxes on the form. Expression Is Right([2],7)="100.00%" works and displays the figure in bold red when the percentage is 100. Expression is Val(Right([2],7))=100 also works - converting the text value to

Controlling size of forms in Access

独自空忆成欢 提交于 2019-12-24 11:44:06
问题 So I have an Access application, and I'd like some forms to be maximised when they are opened, and others to be medium-sized when they are opened. However, if I try something like this: Private Sub Form_Activate() DoCmd.Maximize End Sub or Private Sub Form_Activate() DoCmd.Restore End Sub it has the effect of maximizing or restoring every open window, which isn't what I'm looking for. Is there any way around this? I'm using Access 2003. 回答1: ΤΖΩΤΖΙΟΥ is 100% right when saying that either all

Is there a query that will return all of the column names in a Microsoft Access table?

試著忘記壹切 提交于 2019-12-24 11:43:59
问题 I have a Microsoft Access database that I connect to with the Jet Database Engine, using VB.NET. I want to programmatically get all of the column names for a particular table. I would like to do the equivalent of this MS SQL statement: SELECT COLUMN_NAME FROM INFORMATION_SCHEMA.Columns WHERE TABLE_NAME = 'TableName' Is this possible in Access? If not, what are my options for getting the column names? 回答1: I found a way to do this using the GetSchema method of the .NET Connection class. I