AkAlan
asked on
MS Access Continuous Form - Retrieve row Key in VBA
What is the best way to retrieve a rows key value if you include the key field in the query but don't bind it to a text box?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Does Not work
Dim cmd as New ADODB.Command
With cmd
.Parameters(@MyKeyValue") = Me.MyKeyValue
Does Work:
Dim myKeyValue as integer
myKeyValue = Me.MyKeyValue
Dim cmd as New ADODB.Command
With cmd
.Parameters(@MyKeyValue") = myKeyValue