R
Rosemary
Hi - I have two quesstions please. How would I code the following --
We have WindowsXP, and MS Office 2003 in a network environment. I want to
add code to my MS Access database application as follows:
Question 1:
Two combo boxes (both drop-down list boxes) involved are:
cboRequestorName
cboLibraryLocation
LibraryLocation refers to the area on the server designated for each of 7
branch offices, and each branch office has its files stored in its own
Library. Each branch office is identified by its city name (e.g., Albany,
Buffalo, etc.). Each of the 7 Libraries has its own list of RequestorNames.
So essentially, what I want to code is: when a RequestorName is selected by
the user, I want the appropriate Library to autopopulate in the
LibraryLocation combo box.
PseudoCode:
If cboRequestorName is Johnson, Michael
or If cboRequestorName is Price, Cynthia
or If cboRequestorName is Jones, Phillip
or If cboRequestorName is Smith, Jane
Then
cboLibraryLocation = Albany
If cboRequestorName is Peters, Mark
or If cboRequestorName is Baldwin, Anna
or If cboRequestorName is Devon, Eric
or If cboRequestorName is Bryce, Stanley
Then
cboLibraryLocation = Buffalo
.... etc. for all 7 branch office Libraries
Question 2:
There is a command button control named cmdProcesses, which is set in the
header section of the Main form, named frmMain. Clicking cmdProcesses opens
a subform named frmProcesses. In this subform there are two text boxes,
named txtStartDateTime and txtEndDateTime.
If txtStartDateTime is filled in, but txtEndDateTime is empty, it means a
job is in progress. I want the command button to reflect whether a job is in
progress or not by its color.
So, if txtStartDateTime is filled in (e.g., 3/2/2008, 5:55:00PM) but
txtEndDateTime is empty, I want either the forecolor or the backcolor of
cmdProcessses to change to red (or some other property that makes it stand
out).
Many thanks!!
Rosemary
We have WindowsXP, and MS Office 2003 in a network environment. I want to
add code to my MS Access database application as follows:
Question 1:
Two combo boxes (both drop-down list boxes) involved are:
cboRequestorName
cboLibraryLocation
LibraryLocation refers to the area on the server designated for each of 7
branch offices, and each branch office has its files stored in its own
Library. Each branch office is identified by its city name (e.g., Albany,
Buffalo, etc.). Each of the 7 Libraries has its own list of RequestorNames.
So essentially, what I want to code is: when a RequestorName is selected by
the user, I want the appropriate Library to autopopulate in the
LibraryLocation combo box.
PseudoCode:
If cboRequestorName is Johnson, Michael
or If cboRequestorName is Price, Cynthia
or If cboRequestorName is Jones, Phillip
or If cboRequestorName is Smith, Jane
Then
cboLibraryLocation = Albany
If cboRequestorName is Peters, Mark
or If cboRequestorName is Baldwin, Anna
or If cboRequestorName is Devon, Eric
or If cboRequestorName is Bryce, Stanley
Then
cboLibraryLocation = Buffalo
.... etc. for all 7 branch office Libraries
Question 2:
There is a command button control named cmdProcesses, which is set in the
header section of the Main form, named frmMain. Clicking cmdProcesses opens
a subform named frmProcesses. In this subform there are two text boxes,
named txtStartDateTime and txtEndDateTime.
If txtStartDateTime is filled in, but txtEndDateTime is empty, it means a
job is in progress. I want the command button to reflect whether a job is in
progress or not by its color.
So, if txtStartDateTime is filled in (e.g., 3/2/2008, 5:55:00PM) but
txtEndDateTime is empty, I want either the forecolor or the backcolor of
cmdProcessses to change to red (or some other property that makes it stand
out).
Many thanks!!
Rosemary