Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Create a query that smooshes data into one field on a form?

Status
Not open for further replies.

conneticat

Programmer
Jul 16, 2004
47
US
Not sure how to ask this...
Query or whatever that takes one field in all the records and outputs all that data into a single inline field (I'll worry about delineation later) on a FORM (not into a report...that would be too easy)

cat.gif
 
ON FORM OPEN
dim txt as string
DIM mydb as Database
dim rst as recordset
Set mydb = currentdb
Set rst = mydb.openrecordset("Select fieldname from table")
do while not rst.eof

txt = txt & rst(0) & ','
rst move.next
loop

me.txtsmooshes = txt

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top