G
Guest
Hello ALL:
I open a form2 from a form1 and pass a few variable values over to it, which values are present, but it says that it can't assign them.
In my development .mdb copy, it works fine.
When copied it to Test and updated my links to my Test back end .mdb, it stopped working.
Halp! Why does re-linking do this?
The code is:
Private Sub Form_BeforeInsert(Cancel As Integer)
'DoEvents
'assign necessary key values to the Cycle table
'note: referring back to frmProjectIssue was intermittent
MsgBox Me.Name 'The msgbox is to show me that I am in the current form,
form2, and I am.
Me!ParentProjectID = gvarInterParentProjectID
Me!ProjectID = gvarInterProjectID
Me!Item = gvarInterItem
End Sub
The vars are declared as Public Variants, in a Module, and and the 3 values are Numbers.
I open a form2 from a form1 and pass a few variable values over to it, which values are present, but it says that it can't assign them.
In my development .mdb copy, it works fine.
When copied it to Test and updated my links to my Test back end .mdb, it stopped working.
Halp! Why does re-linking do this?
The code is:
Private Sub Form_BeforeInsert(Cancel As Integer)
'DoEvents
'assign necessary key values to the Cycle table
'note: referring back to frmProjectIssue was intermittent
MsgBox Me.Name 'The msgbox is to show me that I am in the current form,
form2, and I am.
Me!ParentProjectID = gvarInterParentProjectID
Me!ProjectID = gvarInterProjectID
Me!Item = gvarInterItem
End Sub
The vars are declared as Public Variants, in a Module, and and the 3 values are Numbers.