mafhobb
03-02-2009, 08:04 AM
I've got this code:
Private Sub Update_Click()
Dim strSQL As String
Me.PartNumber.SetFocus
strSQL = "SELECT [Cost] FROM [ItemsTbl] WHERE PartNumber='" & Me.PartNumber & "';"
MsgBox strSQL
Me.Cost.SetFocus
Cost = strSQL
End Sub
When I execute it, the message box attached shows up. This message box is supposed to have a $value, not the text shown. I am sure that I am missing something in the query line, but what?
mafhobb
Private Sub Update_Click()
Dim strSQL As String
Me.PartNumber.SetFocus
strSQL = "SELECT [Cost] FROM [ItemsTbl] WHERE PartNumber='" & Me.PartNumber & "';"
MsgBox strSQL
Me.Cost.SetFocus
Cost = strSQL
End Sub
When I execute it, the message box attached shows up. This message box is supposed to have a $value, not the text shown. I am sure that I am missing something in the query line, but what?
mafhobb