Question : vba sql error in microsoft access

I have the following code in my access database:

Set rs = CurrentDb.OpenRecordset("select * from NonconformancesbyUCRNo Order by AutoNumber,UCRNo")

But when I go to run the code, I get a run-time error 3622: you must use the dbSeeChanges option with OpenRecordset when accessing a SQL Server table that has an IDENTITY column.  

So I searched on the web and came up with the following:

Set rs = CurrentDb.OpenRecordset("select * from NonconformancesbyUCRNo Order by AutoNumber,UCRNo", dbOpenDynamic, dbSeeChanges, dbOptimistic)

But now when I run the code, I get a run-time 3001: invalid argument on the code line above.  The table is a SQL table and the field AutoNumber is the primary key (I guess the identity column field).  

This is a legacy table where the identity column is called AutoNumber (primary key) and its field settings is AutoNumber incrementing with no duplicates.  Could an expert please help.  Thank you.

Answer : vba sql error in microsoft access

Because the HDAudio lets you use any jack for any purpose, you'll need to specify which jack you want to be Line In and the registry changes will probably be extensive.

Use RegShot on a clean system, take a snapshot, plug the Line-In device in, set it to the volume you want, take another snapshot, and let RegShot compare the two.  You'll get a text file with all of the registry changes which you can save and then push as a machine startup entry.  http://sourceforge.net/projects/regshot/

Random Solutions  
 
programming4us programming4us