G
Guest
Please, is anyone out there?
I plug this simple code into Northwind Products form and it works nice like
a Mercendes! Then, I plug it into my simple form named frmBuildings based on
a table called 'Buildings"and alas, it works like a beat up 1958 VW.
The message I get is "Type mismatch" on "Set rst = Me.RecordsetClone".
Unfortunately the "rst" does not seem to be recognized in some of my
procedures.
Private Sub Command14_Click()
Dim dbs As Database
Dim rst As Recordset
Dim intI As Integer
Dim fld As Field
Set dbs = CurrentDb
Set rst = Me.RecordsetClone
For Each fld In rst.Fields
' Print field names.
Debug.Print fld.Name
Next
End Sub
Any help is greatly appreciated.
Thanks
I plug this simple code into Northwind Products form and it works nice like
a Mercendes! Then, I plug it into my simple form named frmBuildings based on
a table called 'Buildings"and alas, it works like a beat up 1958 VW.
The message I get is "Type mismatch" on "Set rst = Me.RecordsetClone".
Unfortunately the "rst" does not seem to be recognized in some of my
procedures.
Private Sub Command14_Click()
Dim dbs As Database
Dim rst As Recordset
Dim intI As Integer
Dim fld As Field
Set dbs = CurrentDb
Set rst = Me.RecordsetClone
For Each fld In rst.Fields
' Print field names.
Debug.Print fld.Name
Next
End Sub
Any help is greatly appreciated.
Thanks