sanders720
Programmer
Going a little crazy here. I am trying to use Find with ADO to jump to an Access database record based on selection criteria in my combo box. Bel,ow are five attempts at using the command, and there must be some syntactical issue here. FYI, the field sCustCode is textual in the database.
#1 ' .Find .Fields("sCustCode"
= cboCustCode.Text
#2 ' .Find "SELECT sCustCode FROM tblCustomer WHERE sCustCode = '" & cboCustCode.Text & "' "
#3 ' .Find "[sCustCode] = " & cboCustCode.Text
#4 ' .Find (.Fields("[sCustCode]"
= cboCustCode.Text)
#5 ' .Find (.Fields("sCustCode"
= cboCustCode.Text)
Thanks in advance for the help.
#1 ' .Find .Fields("sCustCode"
#2 ' .Find "SELECT sCustCode FROM tblCustomer WHERE sCustCode = '" & cboCustCode.Text & "' "
#3 ' .Find "[sCustCode] = " & cboCustCode.Text
#4 ' .Find (.Fields("[sCustCode]"
#5 ' .Find (.Fields("sCustCode"
Thanks in advance for the help.