Hi,
-I am getting an error "3061" Too few parameters expected 3.
-I want to create a recordset from a query so that I can use the findnext method to search for some data and edit it. The following code gives me the error:
Dim db As Database
Dim rst As Recordset
Set db = DBEngine(0)(0)
Set rst = db.OpenRecordset("Data") <----Error from this line
-Here's information about my program:
I have 2 tables, a query. The query links the two tables together.
Tables: Info & Price
Query: Data
In the query, I have set some columns with criteria. Columns strDwgNo, strIDCust, strqrStatus.
The criteria: strDwgNo: Like [forms]![queryform]![drawingNo] & "*"
strIDCust: Like [forms]![queryform]![txtIDCust] & "*"
strqrStatus: Like [forms]![queryform]![Temp] & "*"
queryform is a form that links to the query (Data) to control some outputs. drawingNo, txtIDCust & Temp are names of some textbox.
Highly appreciate any help. Thankyou
yhp
-I am getting an error "3061" Too few parameters expected 3.
-I want to create a recordset from a query so that I can use the findnext method to search for some data and edit it. The following code gives me the error:
Dim db As Database
Dim rst As Recordset
Set db = DBEngine(0)(0)
Set rst = db.OpenRecordset("Data") <----Error from this line
-Here's information about my program:
I have 2 tables, a query. The query links the two tables together.
Tables: Info & Price
Query: Data
In the query, I have set some columns with criteria. Columns strDwgNo, strIDCust, strqrStatus.
The criteria: strDwgNo: Like [forms]![queryform]![drawingNo] & "*"
strIDCust: Like [forms]![queryform]![txtIDCust] & "*"
strqrStatus: Like [forms]![queryform]![Temp] & "*"
queryform is a form that links to the query (Data) to control some outputs. drawingNo, txtIDCust & Temp are names of some textbox.
Highly appreciate any help. Thankyou
yhp