Hello. Is there a difference when using Microsoft.ACE.OLEDB and SQL Server connection? I am using Access 2007 front-end and SQL Server 2014 for the back-end and ADO for my record set. When I started this project is used this statement:
connDB.Open ConnectionString:="Provider = Microsoft.ACE.OLEDB.12.0; data source=" & strDB
I want to change that to be using a SQL connection. My statement for that is:
connDB.Open "Driver={SQL Server};Server=LookData1;Database=UTOrderConfig;Trusted_Connection=Yes;"
What the project does is a salesman can choose the Brand, Model, and Make of an item. Then he can add customization to that by clicking the cmdCreateQuote. This opens the frmCustomQuote. On the frmCustomQuote there is the Brand, Model, Make, and Quote Number listed. Quote Number is supposed to be an auto number and is the primary key in the table. The salesman also has the ability to look up previous quotes from another screen. When I use the Microsoft OLEDB my code works fine.
Once I change over to the SQL Server, I don't get the Quote Number. My code always thinks the Quote Number is zero when the program is running. If I go to the table the item was added. Am I clear on what is happening?
So I guess what my question is do I have to do something different with the AddNew property?
connDB.Open ConnectionString:="Provider = Microsoft.ACE.OLEDB.12.0; data source=" & strDB
I want to change that to be using a SQL connection. My statement for that is:
connDB.Open "Driver={SQL Server};Server=LookData1;Database=UTOrderConfig;Trusted_Connection=Yes;"
What the project does is a salesman can choose the Brand, Model, and Make of an item. Then he can add customization to that by clicking the cmdCreateQuote. This opens the frmCustomQuote. On the frmCustomQuote there is the Brand, Model, Make, and Quote Number listed. Quote Number is supposed to be an auto number and is the primary key in the table. The salesman also has the ability to look up previous quotes from another screen. When I use the Microsoft OLEDB my code works fine.
Once I change over to the SQL Server, I don't get the Quote Number. My code always thinks the Quote Number is zero when the program is running. If I go to the table the item was added. Am I clear on what is happening?
So I guess what my question is do I have to do something different with the AddNew property?