J
JohnE
Hi. Below is all the code that is used to trace the use of controls in a
rather large Access app that has been around for 10+ years. It is so large
that the backend is in SQL2005 (4+gigs). The code below should be in a
global type function but I am not familiar with how I would construct it with
what there is here.
The Call line is another Access function that another developer did prior to
me working on this and it is used throughout the app. And it works well.
The sql line is from a stored procedure (IntranetUsageAdd) that another
developer did some time ago as well.
Dim sql As String
Dim ButtonName As String
Dim Location As String
ButtonName = "ChangeDatabasePassword"
Location = "Switchboard"
sql = "IntranetUsageAdd 'button' , " & gUserID & ", '" & Location & "', '" &
ButtonName & "', Null, Null, Null, 0, 1"
Call RunSQLServerStoredProcedure(sql)
The stored proc could change anytime. And if that occurred, I would need to
hunt down all the locations this code has been placed and change each one. I
would like to be ahead of that when it occurs.
So, I am seeking help on making this into a function that can be called and
one place to make any changes.
Thanks.
John
rather large Access app that has been around for 10+ years. It is so large
that the backend is in SQL2005 (4+gigs). The code below should be in a
global type function but I am not familiar with how I would construct it with
what there is here.
The Call line is another Access function that another developer did prior to
me working on this and it is used throughout the app. And it works well.
The sql line is from a stored procedure (IntranetUsageAdd) that another
developer did some time ago as well.
Dim sql As String
Dim ButtonName As String
Dim Location As String
ButtonName = "ChangeDatabasePassword"
Location = "Switchboard"
sql = "IntranetUsageAdd 'button' , " & gUserID & ", '" & Location & "', '" &
ButtonName & "', Null, Null, Null, 0, 1"
Call RunSQLServerStoredProcedure(sql)
The stored proc could change anytime. And if that occurred, I would need to
hunt down all the locations this code has been placed and change each one. I
would like to be ahead of that when it occurs.
So, I am seeking help on making this into a function that can be called and
one place to make any changes.
Thanks.
John