Hi
I am attempting to parse a text field in a query by form, where the user will input into a text box a street name. THe field from the table where the query is looking has the whole street address. I did this in a regular query, but using the query by form method i am lost as to how to put this into code. This is what i did i thought if i used the InStr function to compare the two this would work.
dim StreetAdd as String
StreetAdd = InStr(4, table.StreetAddress, Me![StreetAddr], " "
i cannot get the information from the table to work. It is empty. I dont need to worry about the number before the streetname.
any ideas? i have searched microsoft and this forum, and cannot find anything pertinent.
thanks
raven
I am attempting to parse a text field in a query by form, where the user will input into a text box a street name. THe field from the table where the query is looking has the whole street address. I did this in a regular query, but using the query by form method i am lost as to how to put this into code. This is what i did i thought if i used the InStr function to compare the two this would work.
dim StreetAdd as String
StreetAdd = InStr(4, table.StreetAddress, Me![StreetAddr], " "
i cannot get the information from the table to work. It is empty. I dont need to worry about the number before the streetname.
any ideas? i have searched microsoft and this forum, and cannot find anything pertinent.
thanks
raven