G
Graham M Haines
Can anyone help me with this one
I want to pass 2 variables into a search criteria to use with FINDFIRST
strsearch = "strcol = '" & strval & "'" & ""
Set rst = mdb.OpenRecordset(strtable, dbOpenDynaset)
With rst
.FindFirst (strsearch)
End With
strcol is a string variable containing the column name in the table, and
strval is the value to find. Normally I use a predefined column name ie
strsearch = "[POSTCODE] ='" & strpostcode & "' AND [BIRTHDTE] = '" & strdob
& "' AND [QUALAIM] = '" & strQualaim & "'" & ""
Thanks
Graham
--
Regards
Graham
Graham Haines
--
Regards
Graham
Graham Haines
I want to pass 2 variables into a search criteria to use with FINDFIRST
strsearch = "strcol = '" & strval & "'" & ""
Set rst = mdb.OpenRecordset(strtable, dbOpenDynaset)
With rst
.FindFirst (strsearch)
End With
strcol is a string variable containing the column name in the table, and
strval is the value to find. Normally I use a predefined column name ie
strsearch = "[POSTCODE] ='" & strpostcode & "' AND [BIRTHDTE] = '" & strdob
& "' AND [QUALAIM] = '" & strQualaim & "'" & ""
Thanks
Graham
--
Regards
Graham
Graham Haines
--
Regards
Graham
Graham Haines