NotAnExpert
Registered User.
- Local time
- Today, 00:20
- Joined
- Feb 3, 2017
- Messages
- 46
Good afternoon Gents and Gentesses
I am looking at Access 2010, and am in the process of creating a small database that will look at Sage 200c data directly on the server and hopefully not lock any tables and records while I run queries on it.
I have a form (frmMainForm)
On frmMainForm there is a textbox (txtJobRef) and a subform (sfrmJobItems)
sfrmJobItems is based on a pass through query looking at data on SQL Server (where the Sage 200c data sits) and the passthrough query is currently built as follows:
I am after the subform requerying when the user types a job number into the txtJobRef textbox and presses 'enter' or clicks the search button.
My issue is that I am unsure how to make the pass through query look at the Access Form textbox. Under Normal Circumstances the standard query would simply look at [Forms]![frmMainForm]![txtJobRef] but I have been unable so far to make this work...
Are there any pointers on why this would be, or if someone would be kind enough to offer advice on the correct syntax for this it would be much appreciated.
Note, it is important to me that while a user is using the Microsoft Access database to view this information, that it doesn't cause locks that make the main program hang for the other users...
I am looking at Access 2010, and am in the process of creating a small database that will look at Sage 200c data directly on the server and hopefully not lock any tables and records while I run queries on it.
I have a form (frmMainForm)
On frmMainForm there is a textbox (txtJobRef) and a subform (sfrmJobItems)
sfrmJobItems is based on a pass through query looking at data on SQL Server (where the Sage 200c data sits) and the passthrough query is currently built as follows:
Code:
SELECT DocumentNo, ItemDescription, PrintSequenceNumber, LineQuantity FROM JobListItems;
I am after the subform requerying when the user types a job number into the txtJobRef textbox and presses 'enter' or clicks the search button.
My issue is that I am unsure how to make the pass through query look at the Access Form textbox. Under Normal Circumstances the standard query would simply look at [Forms]![frmMainForm]![txtJobRef] but I have been unable so far to make this work...
Are there any pointers on why this would be, or if someone would be kind enough to offer advice on the correct syntax for this it would be much appreciated.
Note, it is important to me that while a user is using the Microsoft Access database to view this information, that it doesn't cause locks that make the main program hang for the other users...