SENARIO:
I have created a query in MS Access 2000, which requires a query parameter to be entered by the user. For example, under 'Query Parameter'
Parameter: IntfID
Data Type: Long Integer
and then I have one of the column which requires [IntfID]
When I run the query, pop-up dialog-box appears with 'Enter Parameter Value' IntfID. If I supply the IntfID value the query runs fine.
PROBLEM:
I now wish to call this query from various 'subforms' and pass IntfID parameter value automatically, without the parameter dialogue box appearing.
Because the field in different subforms are called by different names, I cannot use the FormName!SubFormName!FieldName method in the query criteria, else the program becomes complicated.
Is there any way I can pass the parameter/data to IntfID without the use of FormName!SubFormName!FieldName?
I have created a query in MS Access 2000, which requires a query parameter to be entered by the user. For example, under 'Query Parameter'
Parameter: IntfID
Data Type: Long Integer
and then I have one of the column which requires [IntfID]
When I run the query, pop-up dialog-box appears with 'Enter Parameter Value' IntfID. If I supply the IntfID value the query runs fine.
PROBLEM:
I now wish to call this query from various 'subforms' and pass IntfID parameter value automatically, without the parameter dialogue box appearing.
Because the field in different subforms are called by different names, I cannot use the FormName!SubFormName!FieldName method in the query criteria, else the program becomes complicated.
Is there any way I can pass the parameter/data to IntfID without the use of FormName!SubFormName!FieldName?