09-20-05, 16:42 #1Registered User
- Join Date
- Mar 2004
I'm have a continous for with a "new" button that opens another form. This new form has 2 controls that I would like to populate with information from the previous form. I was looking at the openargs function but tried the following on a lark and it worked perfectly.
Private Sub cmd_New_Click()
Dim strAccount As String
Dim strCustomerName As String
Forms!frmChecklist!txtAccount = strAccount
Forms!frmChecklist!txtCustomerName = strCustomerName
I didn't include the process by which the variables were assigned but this method seemed to work.
So I'm thinking why send two variables across in one string with open args and parse the variables apart when the above seems to work? Is there any disadvantage?Thanks,
09-20-05, 17:14 #2(Making Your Life Easy)
Provided Answers: 10
- Join Date
- Feb 2004
- New Zealand
about the only Disadvantage is
in the form you are opening you will have to have code to check the OpenArgs and do something with it.hope this help
the aim is store once, not store multiple times
Remember... Optimize 'til you die!
Access based on my own environment: DAO3.6/A97/A2000/A2003/A2007/A2010
VB-NET based on my own environment started 2007
SQL-2005 based on my own environment started 2008
YOUR PASSWORD IS JUST LIKE YOUR TOOTHBRUSH DON'T SHARE IT.
DONT WORRY ABOUT THOSE WHO TALK BEHIND YOUR BACK
THEY'RE BEHIND YOU FOR A REASON