Click to See Complete Forum and Search --> : date problem


zedan
March 7th, 2005, 07:53 AM
Hi
i m trying to build a Query using VB6 but i have problem in using *
this is my Query
"select max(cus_code) from cus_data where cus_code like "&num&"*"
so how can i solve it??
thanks

Krzemo
March 7th, 2005, 08:07 AM
"select max(cus_code) from cus_data where cus_code like '" & num & "*'"

srikanthvja
March 10th, 2005, 08:17 AM
make sure column in where clause is char datatype