R
ramon
Hi! Could anyone please help me with my problem. I am
developing a database in Ms Access and I have this form
use for searching a particular record. My problem is when
I try to click the "OK" command button to start searching
I get a Ms Access message which is "Operation is not
supported for this type of object."
Below is my part of source code & the numbers to the left
are only for reference. The Ms Access message that I
have mentioned appears in lines 5 & 7.
1. Dim rstCurrent As Recordset, txtOrderno As String,
txtLocation As String, dtmUpdateOn As Date
2. 'set variable
3. Set dbsCurrent = CurrentDb()
4. Set rstCurrent = dbsCurrent.OpenRecordset("ROME")
5. rstCurrent.Index = "ORDERNO"
6. 'search for SAP
7. rstCurrent.Seek "=", Sap2Search
8. 'check if no match found
9. If rstCurrent.NoMatch Then
developing a database in Ms Access and I have this form
use for searching a particular record. My problem is when
I try to click the "OK" command button to start searching
I get a Ms Access message which is "Operation is not
supported for this type of object."
Below is my part of source code & the numbers to the left
are only for reference. The Ms Access message that I
have mentioned appears in lines 5 & 7.
1. Dim rstCurrent As Recordset, txtOrderno As String,
txtLocation As String, dtmUpdateOn As Date
2. 'set variable
3. Set dbsCurrent = CurrentDb()
4. Set rstCurrent = dbsCurrent.OpenRecordset("ROME")
5. rstCurrent.Index = "ORDERNO"
6. 'search for SAP
7. rstCurrent.Seek "=", Sap2Search
8. 'check if no match found
9. If rstCurrent.NoMatch Then