XelaIrodavlas
Registered User.
- Local time
- Today, 16:45
- Joined
- Oct 26, 2012
- Messages
- 175
Hello all,
Been a while, please help me remember how to do this
I'm creating a weekly 'meal planner'. I have selected 7 food items at random (from a query). Now I just need to assign those items to 7 different fields (Monday-Sunday) in the MealPlans table.
Basically like this:
MealPlan.txtMonday = "[myquery].[row1]"
MealPlan.txtTuesday = "[myquery].[row2]"
MealPlan.txtWednesday = "[myquery].[row3]"
..etc
Far as im aware there is no easy function to extract the Nth record of a query..
Guess I need to loop through the query and extract the data 1 record at a time, how would you do it???
Many thanks!
Been a while, please help me remember how to do this

I'm creating a weekly 'meal planner'. I have selected 7 food items at random (from a query). Now I just need to assign those items to 7 different fields (Monday-Sunday) in the MealPlans table.
Basically like this:
MealPlan.txtMonday = "[myquery].[row1]"
MealPlan.txtTuesday = "[myquery].[row2]"
MealPlan.txtWednesday = "[myquery].[row3]"
..etc
Far as im aware there is no easy function to extract the Nth record of a query..
Guess I need to loop through the query and extract the data 1 record at a time, how would you do it???
Many thanks!