Hello all.
I have a form that i want to open when i close the current form. On the new form, i need a field to populate with data from the form im closing. Is this even possible?
Here's my code that isnt working:
[CODE=vb]Private Sub Form_Unload(Can cel As Integer)
Dim passNum As Variant
passNum = Me![ProCC #] 'errors out here "object doesnt support property or method
DoCmd.OpenForm "frmProcess "
Forms!frmProces s![ProCCnum] = passNum
End Sub[/CODE]
any ideas?
I have a form that i want to open when i close the current form. On the new form, i need a field to populate with data from the form im closing. Is this even possible?
Here's my code that isnt working:
[CODE=vb]Private Sub Form_Unload(Can cel As Integer)
Dim passNum As Variant
passNum = Me![ProCC #] 'errors out here "object doesnt support property or method
DoCmd.OpenForm "frmProcess "
Forms!frmProces s![ProCCnum] = passNum
End Sub[/CODE]
any ideas?
Comment