Get all data in a column

millercj

Registered User.
Local time
Yesterday, 19:36
Joined
Jan 20, 2009
Messages
18
How would I get all the data in a Table's specified column and save it to a variable delimited with a ";"?
 
try somethin like this, there maybe a few syntax errors as i've wrote it on th fly...


dim rst as recordset
dim strValue as string

strValue=""
set rst=currentdb.openrecordset("tablename")
rst.movefirst
do until rst.eof
strValue = strvaue & rst![Fieldname] & ";"
rst.movenext
loop
rst.close
set rst=nothing
msgbox strvalue
 
Awesome, Thanks!
 

Users who are viewing this thread

Back
Top Bottom