I
Ian
Hi,
I am trying to run the programe below but it keeps
saying:-
"compile error!
User-defined type not defined."
Can you please help me to get it to work.
ps it fails at the line :"Dim db1 As Database"
Dim db1 As Database
Dim rsTable As Recordset
Set db = CurrentDb
Set rsTable = db1.openrecordset("Zfiles")
rsTable.MoveFirst
Do While Not rsTable.EOF
Text1 = Text1 & rsTable!Order & ", "
rsTable.MoveNext
Loop
rsTable.Close
I am trying to run the programe below but it keeps
saying:-
"compile error!
User-defined type not defined."
Can you please help me to get it to work.
ps it fails at the line :"Dim db1 As Database"
Dim db1 As Database
Dim rsTable As Recordset
Set db = CurrentDb
Set rsTable = db1.openrecordset("Zfiles")
rsTable.MoveFirst
Do While Not rsTable.EOF
Text1 = Text1 & rsTable!Order & ", "
rsTable.MoveNext
Loop
rsTable.Close