G
Garry
I have the following code in the After Update event of a combo box,
cboGiftCertNo, that selects GiftCertNo.
Dim db As Database
Dim rec As Recordset
Dim strSQL As String
Set db = CurrentDb
strSQL = "tblGiftCertificatesSold"
Set rec = db.OpenRecordset(strSQL)
rec.Index = "PrimaryKey"
rec.Seek "=", Me.cboGiftCertNo
GiftCertNo is the PrimaryKey in tblGiftCertificatesSold, I have used this
type of code before with no problems. However in this form when I select a
GiftCertNo I get a run time error:
“Run Time Error ‘3251’
Operation not supported for this type of objectâ€
I checked the Indexes for tblGiftCertificatesSold, and it says that the
index Name for GiftCertNo is “PrimaryKeyâ€
What could be the problem???
Thanks -- Garry Gross
cboGiftCertNo, that selects GiftCertNo.
Dim db As Database
Dim rec As Recordset
Dim strSQL As String
Set db = CurrentDb
strSQL = "tblGiftCertificatesSold"
Set rec = db.OpenRecordset(strSQL)
rec.Index = "PrimaryKey"
rec.Seek "=", Me.cboGiftCertNo
GiftCertNo is the PrimaryKey in tblGiftCertificatesSold, I have used this
type of code before with no problems. However in this form when I select a
GiftCertNo I get a run time error:
“Run Time Error ‘3251’
Operation not supported for this type of objectâ€
I checked the Indexes for tblGiftCertificatesSold, and it says that the
index Name for GiftCertNo is “PrimaryKeyâ€
What could be the problem???
Thanks -- Garry Gross