jane2007
03-13-2007, 07:10 AM
Hello,
Here is my current code ...
Dim rstStk As Recordset
Set rstStk = CurrentDb.OpenRecordset("Select * from stk where PartNum = '" & strPrt & "'")
The problem with this code is that i get a run time error if no record is found. How can i search the table differently where i can add a conditional statement so if no record is found, my code can do sometime else.
I really do need help. Thanks.
Here is my current code ...
Dim rstStk As Recordset
Set rstStk = CurrentDb.OpenRecordset("Select * from stk where PartNum = '" & strPrt & "'")
The problem with this code is that i get a run time error if no record is found. How can i search the table differently where i can add a conditional statement so if no record is found, my code can do sometime else.
I really do need help. Thanks.