I have this code
Private Sub Command12_Click()
Dim x As Integer
Dim y As Integer
x = Me.spouseage
y = Me.clientage
Me.rdt = DLookup("[40]", "TblJoint", "[OldestAge]=70")
End Sub
It works fine. However I need to replace "[40]" with x and replace 70 with y.
I can't get the syntax right.
I have...