davidwhite22
IS-IT--Management
I have a test program where the 1st form is "pass1"
as shown below:
Option Compare Database
Public num1 As Integer
Private Sub Command0_Click()
On Error GoTo Err_Command0_Click
num1 = 11
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "pass2"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_Command0_Click:
Exit Sub
Err_Command0_Click:
MsgBox Err.Description
Resume Exit_Command0_Click
End Sub
##################
it sets the variable and opens form "pass2"
form "pass2" sees variable and its value = 11.
If I send this program to other users with access 2002, 2003,2007 "pass2" does not see the variable set in "pass1"
what setting causes this??
thanks
as shown below:
Option Compare Database
Public num1 As Integer
Private Sub Command0_Click()
On Error GoTo Err_Command0_Click
num1 = 11
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "pass2"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_Command0_Click:
Exit Sub
Err_Command0_Click:
MsgBox Err.Description
Resume Exit_Command0_Click
End Sub
##################
it sets the variable and opens form "pass2"
form "pass2" sees variable and its value = 11.
If I send this program to other users with access 2002, 2003,2007 "pass2" does not see the variable set in "pass1"
what setting causes this??
thanks