I still don't have a very clear picture of your underlying data structure,
and in Access, it all starts with the data!
It might be that you have a one-to-many relationship between two sets of
data (?tables). If so, consider using the main form/subform design, built
specifically to handle what I believe you are describing...
--
Regards
Jeff Boycewww.InformationFutures.net
Microsoft Office/Access MVPhttp://mvp.support.microsoft.com/
Microsoft IT Academy Program Mentorhttp://microsoftitacademy.com/
Sorry
More detailed description follows.
Form Form1 has two controls:
- text box control - Text1
- button control - Button1
Form Form2 is classic datasheet form e.g. Customers.
In OnClickEvent for Button1 control I open Form2 to select valeues
(from 1 selected row).
Value(s) from selected row on Form2 (e.g. CustomerFirstName) I want to
assign to Text1 control on Form1.
Because of I create some "template" form I don't want to use "direct"
name of the calling form (Form1) and "direct" name of the text
control.
The best solution will be passing them as "parameters".
I looked into using a global variables and the OpenArgs property, but
all of them used "direct" names.
Adam Hi,
I still don't have a very clear picture of your underlying data structure,
and in Access, it all starts with the data!