I seem to be having trouble when I perform this SQL query with this WHERE clause for selecting a value from the PartNo field. It returns a Nil even though the PartNo for the chosen row is stored in the database under the field. Any input would be appreciated.
For example, the part number I was trying was NXT-10033 which has two instances in the database table.
sql = "SELECT * FROM SKU WHERE PartNo = " + PopupMenuPartNo.SelectedRowValue
Try
results = App.MyDatabase.SelectSQL(sql)
Catch error As DatabaseException
MsgBox("DB Error: " + error.Message)
Return
End Try
If results Is Nil Then Return