oliver_penney
Board Regular
- Joined
- Dec 18, 2002
- Messages
- 182
hi
if i have this code:-
Function test88() As DAO.Field
Set test88 = DBEngine.Workspaces(0).Databases(0).TableDefs("tbl_Teleservices_Spider").Fields("BAN Int")
End Function
Sub test77()
MsgBox test88().Name
End Sub
test77 comes up with "BAN Int" hurrah!
BUT i want to define a new field in a query as this field and if i try something like
test99: test88()
in a query field defn, it says "undefined function test88 in expression"
what am i missing?
regards
oliver
if i have this code:-
Function test88() As DAO.Field
Set test88 = DBEngine.Workspaces(0).Databases(0).TableDefs("tbl_Teleservices_Spider").Fields("BAN Int")
End Function
Sub test77()
MsgBox test88().Name
End Sub
test77 comes up with "BAN Int" hurrah!
BUT i want to define a new field in a query as this field and if i try something like
test99: test88()
in a query field defn, it says "undefined function test88 in expression"
what am i missing?
regards
oliver