ms-access-2003

Access: Shell cmd Open MDB

拈花ヽ惹草 提交于 2019-12-20 02:34:10
问题 I have been using the following command to open another MDB Access file via VBA: Shell "cmd /c " & Chr(34) & strNewFullPath & Chr(34), vbHide strNewFullPath is the full path of the MDB file. Works fine when using Access 2010, but doesn't run on Access 2003. If I run the command in a XP DOS terminal it DOES run. What other command can I use that should work on Access 2003 up and with the Access Runtime? 回答1: You can use the Win32 API to find the EXE name associated with the file type and

Unique constraint on multiple fields in Access 2003

随声附和 提交于 2019-12-19 05:59:18
问题 I have not found any answer regarding my question, all unique constraint questions did not involve MS Access. The question is how to make a unique constraint on multpile fields in MS Access 2003 database? If my table consists of columns id, A, B, C, D, E, F . I have an index on column id , but I would like to have a unique constraint set on both columns A and B . Hence, I may have a duplicate value in column A , provided the value in column B are different. I want to stress that I am not

How to increase performance for bulk INSERTs to ODBC linked tables in Access?

我们两清 提交于 2019-12-17 05:12:32
问题 I have CSV and TXT files to import. I am importing the files into Access and then inserting the records into a linked Oracle table. Each file has around 3 million rows and the process is taking a long time to complete. Importing into Access is very fast, but inserting into the linked Oracle table is taking an extremely long time. Here is the process I am currently using: DoCmd.TransferText acImportFixed, "BUSSEP2014 Link Specification", "tblTempSmartSSP", strFName, False db.Execute "INSERT

MS Access 2003 - Is there a way to programmatically define the data for a chart?

余生长醉 提交于 2019-12-14 03:48:53
问题 So I have some VBA for taking charts built with the Form's Chart Wizard, and automatically inserting it into PowerPoint Presentation slides. I use those chart-forms as sub forms within a larger forms that has parameters the user can select to determine what is on the chart. The idea is that the user can determine the parameter, build the chart to his/her liking, and click a button and have it in a ppt slide with the company's background template, blah blah blah..... So it works, though it is

IIF query using OR operators not working

孤人 提交于 2019-12-14 00:58:33
问题 I'm trying to run the following as criteria in an MS access query. Basically what I want to do is: If checkbox = True then all records, including those with blank or Null fields are shown (the default value in my form's combo box [combo9] is "*") If checkbox = False then only records that match the value in Combo9 are shown My current expression doesn't give any errors, but also doesn't produce any results! The TRUE and FALSE halves of the expression work fine on their own, but don't work

Check null value in MS Access Query

守給你的承諾、 提交于 2019-12-13 13:19:00
问题 In SQL Server we can use IsNull() function to check whether expression value is null or not. For ex. Select IsNull(sum(amount),0) as TotalAmount From Payments Likewise is there any function in MS Access Query to check the null. I need the same statement to be executed in MS Access Query. Can anobody tell me the replacement for IsNull() in MS Access. Thanks for sharing your time. 回答1: Pretty much the equivalent in Access is the nz function. There's a good page on how to use it here. However,

Add user input to Excel table upon upload to Access database

走远了吗. 提交于 2019-12-13 07:17:35
问题 I'm trying to combine user inputs with existing Excel file data so they will all be included in a single table when they are uploaded to the Access database. Here is the way I have it laid out, but I'm open to changing it however need be. I'm just completely stuck with what to do next. Upload Date is automatically filled in, but the rest of the parameters will vary based on the product and will have to be filled in manually. I also want it to be mandatory that every field is filled in, so

How to calculate the difference between values in two rows of one table using MS Access 2003 SQL? with EXTRA CRITERIA

前提是你 提交于 2019-12-13 05:37:35
问题 Name ExactDate Presents bob 2011 1 bob 2008 2 bob 2012 3 mary 1986 4 mary 2001 5 mary 2012 6 kate 2011 7 kate 2012 8 kate 2013 9 celia 2011 10 celia 1986 11 celia 1972 12 celia 2012 13 celia 1991 14 So the goal is we subtract the amount of presents kate got from celia on the same day and out put should be something like the following: Name ExactDate Presents celiaminuskate 2011 3 celiaminuskate 2012 5 Thank you so much I am a first time user of access and SQL . and have a data management task

Update Null Fields with SQL in MS Access

允我心安 提交于 2019-12-12 16:36:44
问题 I'm trying to run some SQL commands in Access VBA to update the blank (null) fields in a column with the value obtained from a combobox in the form. At the moment I'm receiving Run time Error '3061' Too Few Parameters. Expected 1 but it appears to be properly formed. The code I'm using is below. User will be passed as a string, e.g. - "Joe Bloggs". Public Sub testSub(user as string) Dim db as DAO.Database Dim sqlstr as String set db as CurrentDB sqlstr = "UPDATE tTable1 SET Field1 = [" & user

How to write a SQL function into Acces 2003

孤街浪徒 提交于 2019-12-12 04:55:25
问题 So I have an acces table : Data Data is made of : Client ID Product ID Sell Category ( exemple : Sell Dones, Sell Planed ,Forecast Sales) ,written all in letters Quantity sold . unitary price. I am trying to build a single Acces query which would display things like : |Client ID||Product ID||Total Sell Dones||Total Sell Planed||Total Forecast Sell||Quantity Sell Dones||Quantity Sell Planed||Quantity Forecast| How can I do that ? Like if I had only one type of sell and one single quantity I