A
Alexcamp via AccessMonster.com
Can anyone tell what is wrong with the following code? I am getting an error
3251 "operation is not supported for this type of object"
I've searched the forums but everywhere it is said to use DAO recordset but
that's what i am using !!
Any help will be appreciated. Here's the code:
Dim dbProjet As DAO.Database
Dim tdfProjet As DAO.TableDef
Dim rstProjet As DAO.Recordset
Dim ProjectNumber As Long
Set dbProjet = Nothing
Set tdfProjet = Nothing
Set rstProjet = Nothing
Set dbProjet = CurrentDb
Set tdfProjet = dbProjet.TableDefs("tblProjets") ' Opens the Table
Set rstProjet = tdfProjet.OpenRecordset
ProjectNumber = Me.txtNumero.Value
rstProjet.FindFirst ("[NumeroReel_projet] = " & ProjectNumber)
3251 "operation is not supported for this type of object"
I've searched the forums but everywhere it is said to use DAO recordset but
that's what i am using !!
Any help will be appreciated. Here's the code:
Dim dbProjet As DAO.Database
Dim tdfProjet As DAO.TableDef
Dim rstProjet As DAO.Recordset
Dim ProjectNumber As Long
Set dbProjet = Nothing
Set tdfProjet = Nothing
Set rstProjet = Nothing
Set dbProjet = CurrentDb
Set tdfProjet = dbProjet.TableDefs("tblProjets") ' Opens the Table
Set rstProjet = tdfProjet.OpenRecordset
ProjectNumber = Me.txtNumero.Value
rstProjet.FindFirst ("[NumeroReel_projet] = " & ProjectNumber)