Watermelon
Programmer
I'm very new to Access and I'm trying to write a very simple query that will run the select that I have below and put it into a recordset but everytime I run it I get a datatype error. The datatype is text in the database and it's a string on my form. Does anyone know why I would have this problem?
Thanks for any help,
TM
Dim db As Database
Dim rst As Recordset
Set db = CurrentDb
Set rst = db.OpenRecordset("SELECT * FROM Part WHERE [ReplacementParts] = '" & Forms!ReplacedPartsForm!PartEntered & "'"
The "PartEntered" field above refers to a control I have on my form.
Thanks for any help,
TM
Dim db As Database
Dim rst As Recordset
Set db = CurrentDb
Set rst = db.OpenRecordset("SELECT * FROM Part WHERE [ReplacementParts] = '" & Forms!ReplacedPartsForm!PartEntered & "'"
The "PartEntered" field above refers to a control I have on my form.