I have an Access table that has the following fields;
FacID Loc # Inn Brand TableTents
3864 1179 RWCEX.pdf HIEX 75
5749 7629 SFOPF.pdf HEXS 75
7258 4648 YRMAB.pdf HIEX 75
I need the records in the table to repeat based on the "TableTents" field.
This is what I have written so far. Not sure how to continue.
Sub ExitExample()
Dim dbsSampeFile As Database
Dim db As DAO.Database
Dim Tbls As DAO.TableDefs
Dim rs1 As DAO.Recordset
Dim rs2 As DAO.Recordset
Dim nextTbl As Label
Set db = CurrentDb
Dim a As String
Counter = 0
myNum = Tabletents
'a = "SELECT * FROM [" & tname & "];"
' MsgBox a
Set rs1 = db.OpenRecordset(a)
Do While Not rs1.EOF
Counter = Counter + 1
If Counter <= Tabletents Then
MsgBox "The loop made " & Counter & " repetitions."
End Sub
FacID Loc # Inn Brand TableTents
3864 1179 RWCEX.pdf HIEX 75
5749 7629 SFOPF.pdf HEXS 75
7258 4648 YRMAB.pdf HIEX 75
I need the records in the table to repeat based on the "TableTents" field.
This is what I have written so far. Not sure how to continue.
Sub ExitExample()
Dim dbsSampeFile As Database
Dim db As DAO.Database
Dim Tbls As DAO.TableDefs
Dim rs1 As DAO.Recordset
Dim rs2 As DAO.Recordset
Dim nextTbl As Label
Set db = CurrentDb
Dim a As String
Counter = 0
myNum = Tabletents
'a = "SELECT * FROM [" & tname & "];"
' MsgBox a
Set rs1 = db.OpenRecordset(a)
Do While Not rs1.EOF
Counter = Counter + 1
If Counter <= Tabletents Then
MsgBox "The loop made " & Counter & " repetitions."
End Sub