D
DaveAP
Using this method found on the boards below from Ofer Cohen to pre-fill some
fields onto a second form I get an error message "Type Mismatch":
You can pass the fields values using the OpenArgs, put a seperator between
them, like ($) Something that wont come up in the string
DoCmd.OpenForm DocName, , , ,acFormAdd , ,Me.[Field1] & "$" & Me.[Field2]
On the OnLoad event of the second form form, write the code to split the open
args and assign it to the text boxes
If Me.NewRecord Then
Me.[Field1] = Split(Me.OpenArgs,"$")(0)
Me.[Field2] = Split(Me.OpenArgs,"$")(1)
End If
Since the second form is a copy of the first, how is this possible? And how
to I assure this error won't come up?
Thank you in advance!!
fields onto a second form I get an error message "Type Mismatch":
You can pass the fields values using the OpenArgs, put a seperator between
them, like ($) Something that wont come up in the string
DoCmd.OpenForm DocName, , , ,acFormAdd , ,Me.[Field1] & "$" & Me.[Field2]
On the OnLoad event of the second form form, write the code to split the open
args and assign it to the text boxes
If Me.NewRecord Then
Me.[Field1] = Split(Me.OpenArgs,"$")(0)
Me.[Field2] = Split(Me.OpenArgs,"$")(1)
End If
Since the second form is a copy of the first, how is this possible? And how
to I assure this error won't come up?
Thank you in advance!!