Hi.
I have created a interface from which the user can select a contract from a dropdown list and 'On Change' it runs code to return the value from a query.
Here is an example:
If cboContracts <> 0 Then
myContractSelect = CStr(Left(cboContracts.Value, 8))
updatedContractSelect = myContractSelect
cboContracts = myContractSelect
DoCmd.OpenQuery "qryLocations"
Me.cboContracts = myContractSelect
End If
The value of the combo box is a variation of strings and numbers (e.g. 63000105 Park Avenue). This 8 character value is used to run the query.
I would like to refer to this query which includes the tables that need to be linked and also the database to open.
How can I refer to this query, to loop through each record and link each table to the front end database. Do until the last recordset set is reached. Example code would be much appreciated as I am a beginner.
Thank you in advance and have a great day.
Jackie
I have created a interface from which the user can select a contract from a dropdown list and 'On Change' it runs code to return the value from a query.
Here is an example:
If cboContracts <> 0 Then
myContractSelect = CStr(Left(cboContracts.Value, 8))
updatedContractSelect = myContractSelect
cboContracts = myContractSelect
DoCmd.OpenQuery "qryLocations"
Me.cboContracts = myContractSelect
End If
The value of the combo box is a variation of strings and numbers (e.g. 63000105 Park Avenue). This 8 character value is used to run the query.
I would like to refer to this query which includes the tables that need to be linked and also the database to open.
How can I refer to this query, to loop through each record and link each table to the front end database. Do until the last recordset set is reached. Example code would be much appreciated as I am a beginner.
Thank you in advance and have a great day.
Jackie