Hi All,
Love this site, have gotten a lot from it. This is my first time
posting though, so forgive me for any errors.
I have an Access 2000 db where I have a main form of Contractors and on
the main form is a subform of bonds carried by those contractors. I am
trying to reference a field named "Bond" located on the subform in
code that is run from the mainform and am having trouble with the
syntax for this. Below is a sample of just some of the code that I
have tried.
If Me.FraSearch.Value = "1" Then
strField =
"[Forms]![frmCustomerBonds]![frmBondsSubform]![BondNum] = '" &
Me![txtLookup] & "'"
ElseIf Me.FraSearch.Value = "2" Then
strField = "[LiscNum] = '" & Me![txtLookup] & "'"
Else
strField = "[LastName] = '" & Me![txtLookup] & "'"
End If
By the way the strField references in the 2nd and 3rd then statement
of the above code work, it is the first Then statement I am having
trouble with. Would be glad for any assistance as I am loosing hair by
the handful on this one.