G
Guest
Okay, I want to split off reports and queries from my main database, because
trying to wade through this mountain of queries is cumbersome from a support
perspective....
I want to move reports and queries that are all functionally related to
another database with linked tables, but I want to call the reports from my
original database, by clicking on a form button, but when I run that report,
I want it filtered to match the record I'm looking at in my form....
I got no response to my first query about how to make that call....
My next post was answered, but where we created an OpenReport function and
tried to pass the variable to that function, but for some reason it creates
the reference, but never recognizes the function on that database that was
created.
I was thinking if I used a simple command line to open that database, I'd
like to pass the variable along that way.
If I have an AutoExec macro, or an AutoExec macro that runs code, can I pass
the variable I want using the /cmd switch on the command line?
If so, can someone point me to some examples of how that would be set up? I
can't find any real life examples of using the /cmd switch anywhere.
So, if I want to pass [CustomerNumb], which is equal to "15" using that
switch....
Application.FollowHyperlink "C:\MyFiles\db2.mdb /cmd 15"
Application.FollowHyperlink "C:\MyFiles\db2.mdb /cmd CustomerNumb=15"
Application.FollowHyperlink "C:\MyFiles\db2.mdb /cmd ""CustomerNumb=15"""
Application.FollowHyperlink "C:\MyFiles\db2.mdb /cmd ""[CustomerNumb]=15"""
Or does something else work for that?
Or is there a much, much simpler way to pass a variable between databases
that my lack of experience has me missing here?
trying to wade through this mountain of queries is cumbersome from a support
perspective....
I want to move reports and queries that are all functionally related to
another database with linked tables, but I want to call the reports from my
original database, by clicking on a form button, but when I run that report,
I want it filtered to match the record I'm looking at in my form....
I got no response to my first query about how to make that call....
My next post was answered, but where we created an OpenReport function and
tried to pass the variable to that function, but for some reason it creates
the reference, but never recognizes the function on that database that was
created.
I was thinking if I used a simple command line to open that database, I'd
like to pass the variable along that way.
If I have an AutoExec macro, or an AutoExec macro that runs code, can I pass
the variable I want using the /cmd switch on the command line?
If so, can someone point me to some examples of how that would be set up? I
can't find any real life examples of using the /cmd switch anywhere.
So, if I want to pass [CustomerNumb], which is equal to "15" using that
switch....
Application.FollowHyperlink "C:\MyFiles\db2.mdb /cmd 15"
Application.FollowHyperlink "C:\MyFiles\db2.mdb /cmd CustomerNumb=15"
Application.FollowHyperlink "C:\MyFiles\db2.mdb /cmd ""CustomerNumb=15"""
Application.FollowHyperlink "C:\MyFiles\db2.mdb /cmd ""[CustomerNumb]=15"""
Or does something else work for that?
Or is there a much, much simpler way to pass a variable between databases
that my lack of experience has me missing here?