How do you transfer data froma form to a tab

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

i have a Form, CRUDIngredient. It has a List box, IngredientList. The list
box list all the rcds in the Ingreidents tbl. The Key field IngredientId is
hidden. The Tab object has a tab named ChangeTab. ChangeTab has 3 fields
ChangeTabIngredient, ChangeTabNote and ChangeTabIngredientId.
ChangeTabIngredientId is hidden. after selecting an item from the List box
on the Form i want to click on the Change tab. when i do that i want the
fields from the list box copied to the fields in the ChangeTab. can you tell
me how to do this?
 
i have a Form, CRUDIngredient. It has a List box, IngredientList. The list
box list all the rcds in the Ingreidents tbl. The Key field IngredientId is
hidden. The Tab object has a tab named ChangeTab. ChangeTab has 3 fields
ChangeTabIngredient, ChangeTabNote and ChangeTabIngredientId.
ChangeTabIngredientId is hidden. after selecting an item from the List box
on the Form i want to click on the Change tab. when i do that i want the
fields from the list box copied to the fields in the ChangeTab. can you tell
me how to do this?

You're apparently misunderstanding how Tabs work. They don't "contain"
data - for that matter, Forms don't contain data.

A Tab Control is simply a method by which a form can share screen
real estate; the controls on one tab or another tab can be viewed by
selecting the tab page. However, the controls on (or off!) any tab
page are simply controls on the Form, which display fields in the
Form's recordsource.

What is the Recordsource of your Form? Why would you want to
(apparently redundantly) store fields in the IngredientList listbox
into other fields... or are they unbound textboxes?

John W. Vinson[MVP]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top