Hello
I am experiencing a problem with a query referenced by a script I am running.
The error is:
Error in: B2B Lodgement
Line: 10 - Parameter
[Forms]![Goods]![Test environment] has no default value
This relates to a Microsoft Access query which is referencing a field on a form.
DBQuery>GoodsTesting,Select * From qryXMLLodgementsImportExport,rDEC,NumRecs,NumFields,0
If I remove the form reference the script works fine.
Can anyone suggest a solution to this problem.
Any help would be appreciated.
No Default Value
Moderators: Dorian (MJT support), JRL
Re: No Default Value
Can you query a form? Am I missing something? In my experience you would query a table. A form is a method to view the contents of a table usually one record at a time.
What part of the DBQuery> line is the "form reference" that is removed to make the script work?
What part of the DBQuery> line is the "form reference" that is removed to make the script work?
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
Re: No Default Value
As JRL says, Macro Scheduler has no knowledge of your "form" and can't query it. It can only query a table or query.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?