G
Gwen Powell
I am trying to write a simple piece of code that I will use over and over
again. I need to pass a field name as well as the table names to the code
but I cannot seem to get the syntax correct when trying to pass the field
name.
I have something like:
NumberThis(T1, T2, F1) 'F1 is the field name
Dim myTable, mySeed, myDB, myField
Set myDB=CurrentDB()
Set myTable=myDB.Openrecordset(T1)
Set mySeed=myDB.Openrecordset(T2)
Set myField=myTable.F1 '''This is where the problem is--I cannot remember
nor find the proper syntax
etc, etc
Thanks for any help.
Gwen Powell
Torrance Unified School District
again. I need to pass a field name as well as the table names to the code
but I cannot seem to get the syntax correct when trying to pass the field
name.
I have something like:
NumberThis(T1, T2, F1) 'F1 is the field name
Dim myTable, mySeed, myDB, myField
Set myDB=CurrentDB()
Set myTable=myDB.Openrecordset(T1)
Set mySeed=myDB.Openrecordset(T2)
Set myField=myTable.F1 '''This is where the problem is--I cannot remember
nor find the proper syntax
etc, etc
Thanks for any help.
Gwen Powell
Torrance Unified School District