J
Jeff Conrad
Hi,
Using Access 97 at the moment.
This is the last piece of the puzzle to complete a personal project.
Everything else checks out except for this problem. I'm using some Access 97
wizard code and trying to make it compatible with 2000, 2002, and 2003. The
97 code references entry point 18 for something which cannot be found in the
later versions. Ok fine, but I'm just going bonkers trying to figure out
what *exactly* it is doing!
In the declaration area of one of the modules there is this one line:
Declare Function wlib_HscrOpenEx Lib "msaccess.exe" Alias "#18" (ByVal
lpszScript As String, ByVal lpszLabel As Any, ByVal smode As Long, pgrfExtra
As Long, psmv As Long) As Long
One of the functions in the same module starts off like this:
Public Function wlib_CGetExecutableMacros(db As DAO.Database,
rgstExeMacros() As String) As Integer
Inside this function is a line like this:
hscr = wlib_HscrOpenEx(stMacroName, 0&, 0&, grfExtra, lMacVersion)
I believe this function is getting a list of all the macros, but are there
different "types" of macros??
The very last line of the above mentioned function has this:
wlib_CGetExecutableMacros = iMac - 1
Stepping through the code reveals a count of the macros in the current
database just before the function exits. Now I'm pretty sure I can make some
code to get a list of all the macros as well as one to get a count, but my
problem is getting this to work *within* the confines of the other existing
functions! I've stepped ALL over this code and I'm just getting more
confused.
I realize this is a difficult concept to grasp, but if anyone sees something
obvious I'd be most interested in hearing your thoughts. I can point you to
a Microsoft download file for 97 which illustrates everything as well.
Thanks for any help,
Using Access 97 at the moment.
This is the last piece of the puzzle to complete a personal project.
Everything else checks out except for this problem. I'm using some Access 97
wizard code and trying to make it compatible with 2000, 2002, and 2003. The
97 code references entry point 18 for something which cannot be found in the
later versions. Ok fine, but I'm just going bonkers trying to figure out
what *exactly* it is doing!
In the declaration area of one of the modules there is this one line:
Declare Function wlib_HscrOpenEx Lib "msaccess.exe" Alias "#18" (ByVal
lpszScript As String, ByVal lpszLabel As Any, ByVal smode As Long, pgrfExtra
As Long, psmv As Long) As Long
One of the functions in the same module starts off like this:
Public Function wlib_CGetExecutableMacros(db As DAO.Database,
rgstExeMacros() As String) As Integer
Inside this function is a line like this:
hscr = wlib_HscrOpenEx(stMacroName, 0&, 0&, grfExtra, lMacVersion)
I believe this function is getting a list of all the macros, but are there
different "types" of macros??
The very last line of the above mentioned function has this:
wlib_CGetExecutableMacros = iMac - 1
Stepping through the code reveals a count of the macros in the current
database just before the function exits. Now I'm pretty sure I can make some
code to get a list of all the macros as well as one to get a count, but my
problem is getting this to work *within* the confines of the other existing
functions! I've stepped ALL over this code and I'm just getting more
confused.
I realize this is a difficult concept to grasp, but if anyone sees something
obvious I'd be most interested in hearing your thoughts. I can point you to
a Microsoft download file for 97 which illustrates everything as well.
Thanks for any help,