I have form code that declares a public recordset at the top:
Public pubRS As DAO.Recordset
I open a recordset and assign it:
Set pubRS = rsSelect
(printing current record from pubRS works here)
I then call a public subroutine in a module and attempt to print the
current record:
Debug.Print "123---" & pubRS("TG_CNTRC T_ID")
and I get:
" Compile Error: Sub or Function not defined. "
What did I do wrong?
Thanks,
Christian
Public pubRS As DAO.Recordset
I open a recordset and assign it:
Set pubRS = rsSelect
(printing current record from pubRS works here)
I then call a public subroutine in a module and attempt to print the
current record:
Debug.Print "123---" & pubRS("TG_CNTRC T_ID")
and I get:
" Compile Error: Sub or Function not defined. "
What did I do wrong?
Thanks,
Christian
Comment