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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Textbox loop through recordset

Status
Not open for further replies.

access101

Programmer
Sep 4, 2010
68
US
I have a form which also has a subform on it. On my main form I have an unbound textbox which has this as its controlsource ="Expr1: [Sandwich] & IIf([Notes]=Null Or [Extras]=Null Or [Sides]=Null Or [Drinks]=Null,Null,Chr(13)+Chr(10) & [Notes] & [Extras] & [Sides] & [Drinks]) & Chr(13)+Chr(10) & Chr(13)+Chr(10)".

The issue im having is that it is only showing one row. I need it to loop through and display them in my textbox.

I want my textbox to look like this:

Sandwich
Notes
Extras
Sides
Drinks

Sandwich
Notes
Extras
Sides
Drinks

Etc....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top