N
Nick T
Hi,
I have some code behind cmd button, however i keep getting a compile error
saying "User-Defined type not defined"
What does this mean & how can i resolve this??
My code if necessary is:
Private Sub Command31_Click()
Dim rst As DAO.Recordset
Set rst = CurrentDb.OpenRecordset("LogQuery", dbOpenDynaset)
With rst
.FindFirst "[ProductDescription] = " & Me.ProductDescription
If .NoMatch Then
MsgBox "blar blar blar"
DoCmd.Close
Else
Me.TotalWeight = ![Sum Of Weight(kg)]
End If
.Close
End With
Set rst = Nothing
End Sub
Any suggestions welcome.
Many thanks
I have some code behind cmd button, however i keep getting a compile error
saying "User-Defined type not defined"
What does this mean & how can i resolve this??
My code if necessary is:
Private Sub Command31_Click()
Dim rst As DAO.Recordset
Set rst = CurrentDb.OpenRecordset("LogQuery", dbOpenDynaset)
With rst
.FindFirst "[ProductDescription] = " & Me.ProductDescription
If .NoMatch Then
MsgBox "blar blar blar"
DoCmd.Close
Else
Me.TotalWeight = ![Sum Of Weight(kg)]
End If
.Close
End With
Set rst = Nothing
End Sub
Any suggestions welcome.
Many thanks