A
adam.vogg
I am opening an ADODB recordset based on a query. However, i want
that query to reference a form control.
here is my code:
Dim myC As ADODB.Connection
Dim myR As New ADODB.Recordset
Set myC = CurrentProject.Connection
myR.ActiveConnection = myC
myR.Open "SELECT * FROM tblClaimant Where OrderNum= [Forms]![frmClaim].
[text39].[value]", , adOpenStatic, adLockOptimistic
This is not working. Do I need some sort of qualifiers around the
reference?
Thanks for the help,
ADAM
that query to reference a form control.
here is my code:
Dim myC As ADODB.Connection
Dim myR As New ADODB.Recordset
Set myC = CurrentProject.Connection
myR.ActiveConnection = myC
myR.Open "SELECT * FROM tblClaimant Where OrderNum= [Forms]![frmClaim].
[text39].[value]", , adOpenStatic, adLockOptimistic
This is not working. Do I need some sort of qualifiers around the
reference?
Thanks for the help,
ADAM