hello guys
We're making a database in access 2002 and we keep getting this error...
here's the code:
when we click Debug it goes directly to the line "Set rcd2 = Base.OpenRecordset(str)"
hope u guys can help me
Thanks in advance
We're making a database in access 2002 and we keep getting this error...
here's the code:
Code:
Dim Base As Database
Dim str, strTest0 As String
Dim strTest1, strTest2, strTest3 As Double
Dim rcd, rcd1, rcd2 As Recordset
Set Base = CurrentDb
Set rcd = Base.OpenRecordset("SLProd_Out", dbOpenDynaset)
Set rcd1 = Base.OpenRecordset("SLProd_In", dbOpenDynaset)
strTest0 = [Forms]![Shelflife]![Lb_Armazem].Column(0)
strTest1 = [Forms]![Shelflife]![Lb_Armazem].Column(1)
strTest2 = [Forms]![Shelflife]![Lb_Armazem].Column(2)
strTest3 = [Forms]![Shelflife]![Lb_UtiOfi].Column(4)
str = "SELECT SLProd_In.PN, SLProd_In.TR, SLProd_In.Dt_L, SLProd_Out.TAP_Num" _
& " FROM SLProd_Out,SLProd_In WHERE (((SLProd_In.PN)='" & strTest0 & "') AND ((SLProd_In.TR)=" & strTest1 & ") AND ((SLProd_In.Dt_L)=" & strTest2 & ") AND ((SLProd_Out.TAP_Num)=" & strTest3 & "))"
Set rcd2 = Base.OpenRecordset(str)
when we click Debug it goes directly to the line "Set rcd2 = Base.OpenRecordset(str)"
hope u guys can help me
Thanks in advance
