G
Gman063 via AccessMonster.com
I am new to VBA DAO and I am having a problem populating a form with records
using DAO. I have the following code in the Forms OnLoad event:
Dim dbs As Database
Dim rsFCE As Recordset
Set dbs = CurrentDb
Set rsFCE = dbs.OpenRecordset("tblAll_FCE_List")
FCEID = rsFCE!FCEID
FCENumber = rsFCE!FCENumber
FCELevel1 = rsFCE!FCELevel1
FCELevel2 = rsFCE!FCELevel2
FCELevel3 = rsFCE!FCELevel3
FCELabel = rsFCE!FCELabel
rsFCE.Close
Code runs but only returns one record. There are 214 records in the table..
What am I doing worng?
Thanks
using DAO. I have the following code in the Forms OnLoad event:
Dim dbs As Database
Dim rsFCE As Recordset
Set dbs = CurrentDb
Set rsFCE = dbs.OpenRecordset("tblAll_FCE_List")
FCEID = rsFCE!FCEID
FCENumber = rsFCE!FCENumber
FCELevel1 = rsFCE!FCELevel1
FCELevel2 = rsFCE!FCELevel2
FCELevel3 = rsFCE!FCELevel3
FCELabel = rsFCE!FCELabel
rsFCE.Close
Code runs but only returns one record. There are 214 records in the table..
What am I doing worng?
Thanks