G
GB via AccessMonster.com
I've created a report in MSA2000 using public variables. When i executed the report using MSA2003 it seems as the public variables are not recognized.
Public pfiller1, pitemno as string.
Option Compare Database
Private Sub Report_Open(Cancel As Integer)
pfiller1 = "LINE"
pitemno = "0010"
DoCmd.RunSQL "INSERT INTO tmp_lineitem (pfiller1 ,pitemno ) VALUES ( pfiller1 ,mitemno );"
End Sub
Public pfiller1, pitemno as string.
Option Compare Database
Private Sub Report_Open(Cancel As Integer)
pfiller1 = "LINE"
pitemno = "0010"
DoCmd.RunSQL "INSERT INTO tmp_lineitem (pfiller1 ,pitemno ) VALUES ( pfiller1 ,mitemno );"
End Sub