H
Harlan
I have the following code
Public GroupName As String
------------------------------------------------------------------
Function fGetGroupName() As String
fGetYourGlobal = GroupName
End Function
-------------------------------------------------------------------
DIM ..... all the variables, SET db.... etc
strSQL = "SELECT dbo_PIP.* FROM dbo_PIP WHERE
(((dbo_PIP.problem_eval_user_group_cd)=fgetGroupName()));"
Set rst = db.OpenRecordset(strSQL, dbOpenSnapshot)
when i run this, I get "Undefined function 'fGetGroupName' in expression"
error
I have tried every combination of ' and " and ( and ) I can think of..... I
know there is something wrong with the strSQL string, where am I going
wrong?
Thanks
Harlan
Public GroupName As String
------------------------------------------------------------------
Function fGetGroupName() As String
fGetYourGlobal = GroupName
End Function
-------------------------------------------------------------------
DIM ..... all the variables, SET db.... etc
strSQL = "SELECT dbo_PIP.* FROM dbo_PIP WHERE
(((dbo_PIP.problem_eval_user_group_cd)=fgetGroupName()));"
Set rst = db.OpenRecordset(strSQL, dbOpenSnapshot)
when i run this, I get "Undefined function 'fGetGroupName' in expression"
error
I have tried every combination of ' and " and ( and ) I can think of..... I
know there is something wrong with the strSQL string, where am I going
wrong?
Thanks
Harlan