J
John
I am trying to use a sql server 2005 scalar-valued function to return
a decimal that will be used to determine if a person is over or under
their authority limit. Below is the what I have so far but keep
getting the error 'Undefined function dbo.POLimitGetFromEmployeeID in
expression.' Debugging stops on the 'sql =' line. The gUserID (int)
is what is used to determine who is signed into the Access2007 app.
Private Sub TabCtl30_Change()
Form!zPurchaseOrderItems.Form.Requery
Dim rst As ADODB.Recordset
Dim sql As String
Set rst = New ADODB.Recordset
sql = "SELECT dbo.POLimitGetFromEmployeeID(gUserID)"
rst.Open sql, CurrentProject.Connection, adOpenKeyset,
adLockReadOnly
rst.Close
Set rst = Nothing
End Sub
The above lines are in a the tab change event. There will eventually
be other code written here to complete the process. Thought about
references but there are no references with MISSING on them. Is there
a particular reference that should be checked? Is there something in
the code above that I should have but missed?
Thanks....John
a decimal that will be used to determine if a person is over or under
their authority limit. Below is the what I have so far but keep
getting the error 'Undefined function dbo.POLimitGetFromEmployeeID in
expression.' Debugging stops on the 'sql =' line. The gUserID (int)
is what is used to determine who is signed into the Access2007 app.
Private Sub TabCtl30_Change()
Form!zPurchaseOrderItems.Form.Requery
Dim rst As ADODB.Recordset
Dim sql As String
Set rst = New ADODB.Recordset
sql = "SELECT dbo.POLimitGetFromEmployeeID(gUserID)"
rst.Open sql, CurrentProject.Connection, adOpenKeyset,
adLockReadOnly
rst.Close
Set rst = Nothing
End Sub
The above lines are in a the tab change event. There will eventually
be other code written here to complete the process. Thought about
references but there are no references with MISSING on them. Is there
a particular reference that should be checked? Is there something in
the code above that I should have but missed?
Thanks....John