N
news
Hi all perhaps someone could help me run before I can crawl
I have a data a database of clients
and from a separate vb program (which does other things) I wish to open my
clients database, select surname field from clients table order by surname,
remove repeats and export to a text file surnames.txt
this is as far as I have got
temp1 = "SELECT surname FROM clients"
Set dbs = OpenDatabase("C:\clients.mdb")
dbs.Execute temp1
dbs.Close
vb5 comes with an error cannot execute select query
and yet in another program with similar code INSERT works fine
any help appreciated and thanks in advance
I have a data a database of clients
and from a separate vb program (which does other things) I wish to open my
clients database, select surname field from clients table order by surname,
remove repeats and export to a text file surnames.txt
this is as far as I have got
temp1 = "SELECT surname FROM clients"
Set dbs = OpenDatabase("C:\clients.mdb")
dbs.Execute temp1
dbs.Close
vb5 comes with an error cannot execute select query
and yet in another program with similar code INSERT works fine
any help appreciated and thanks in advance