J
Jp4
I have a database that I have developed for multiple units to use. For
reasons that I won't go into, each unit must have an individual copy
of the database to store their data. BUT the databases need to be
identical. So far, annoying, but no big deal.
Anyway, what I am doing is creating the master copy where I get it all
correct and then I will make a copy for each unit and drop their data
into it... again no big deal. BUT in order to help keep them straight,
I would like to have specific labels that refer to the database
property Title bc the DB is on a network buried in a file more then 10
levels down so using the name is unrealistic.
I have used the Switchboard Manager to create my switchboard (I know,
don't shoot me, let's just move forward with that knowledge There
is currently a label at the top that says "Unit Tracking." I want it
to say "[DatabaseProperty.Title] Tracking" How would I go about
either:
1) making the Label Caption read that property or 2) after I change it
to a textbox, referring to it as part of the control source? I just
can't seem to find the right references for the second version.
CurrentDB.Name did give me the file name but again it was too long
because that gave me the whole path and I don't want to use the
filename anyway in case the users decide to change it. I can
individually go through all the labels. I was just hoping to do it
programatically if I could, espeically since unit names change often
enough to be a nuisance. If it were just the matter of the Switchboard
form I would do it manually but it actually is something that the
"powers that be" want on all the forms and there are quite a number.
Also in my Switchboard Items table, I would also like this same
information injected into the a couple of the ItemText labels. This is
less necessary though.
for example I have: SwitchboardID=1, ItemNumber=1, ItemText=Exit
Tracking Database, Command=6,Argument=(Null) but I want:
SwitchboardID=1, ItemNumber=1, ItemText=Exit
*DatabaseProperties.Title* Tracking Database,
Command=6,Argument=(Null).
Again this second issue is less necessary and I am less interested,
especially if the other process works.
Thanks in advance.
reasons that I won't go into, each unit must have an individual copy
of the database to store their data. BUT the databases need to be
identical. So far, annoying, but no big deal.
Anyway, what I am doing is creating the master copy where I get it all
correct and then I will make a copy for each unit and drop their data
into it... again no big deal. BUT in order to help keep them straight,
I would like to have specific labels that refer to the database
property Title bc the DB is on a network buried in a file more then 10
levels down so using the name is unrealistic.
I have used the Switchboard Manager to create my switchboard (I know,
don't shoot me, let's just move forward with that knowledge There
is currently a label at the top that says "Unit Tracking." I want it
to say "[DatabaseProperty.Title] Tracking" How would I go about
either:
1) making the Label Caption read that property or 2) after I change it
to a textbox, referring to it as part of the control source? I just
can't seem to find the right references for the second version.
CurrentDB.Name did give me the file name but again it was too long
because that gave me the whole path and I don't want to use the
filename anyway in case the users decide to change it. I can
individually go through all the labels. I was just hoping to do it
programatically if I could, espeically since unit names change often
enough to be a nuisance. If it were just the matter of the Switchboard
form I would do it manually but it actually is something that the
"powers that be" want on all the forms and there are quite a number.
Also in my Switchboard Items table, I would also like this same
information injected into the a couple of the ItemText labels. This is
less necessary though.
for example I have: SwitchboardID=1, ItemNumber=1, ItemText=Exit
Tracking Database, Command=6,Argument=(Null) but I want:
SwitchboardID=1, ItemNumber=1, ItemText=Exit
*DatabaseProperties.Title* Tracking Database,
Command=6,Argument=(Null).
Again this second issue is less necessary and I am less interested,
especially if the other process works.
Thanks in advance.