spartansFC
Programmer
Hi
I'm trying to add a parking permit form to my database, each person is given a unique parking permit number which can be handed back in and then handed out to another person.
If a parking permit is already in use i don't want the combo box to show it, i can't think of a way to do it.
The steps are:
[ul]
[li]Main form[/li]
[li]User clicks "Add New Parking Permit[/li]
[li]a form pops up[/li]
[/ul]
I know how to do the above steps, it's the combo box where i get stuck
I have currently.
tblParkingPermits is the record source for frmParkingPermits
I did think of having a status "Standard Use" or "Expired or Cancelled"
In the combox selection on the parking permit form, have something like:
The problem really is how do i assign a status to each parking permit number initially so that there all accessible
Thanks
Michael
I'm trying to add a parking permit form to my database, each person is given a unique parking permit number which can be handed back in and then handed out to another person.
If a parking permit is already in use i don't want the combo box to show it, i can't think of a way to do it.
The steps are:
[ul]
[li]Main form[/li]
[li]User clicks "Add New Parking Permit[/li]
[li]a form pops up[/li]
[/ul]
I know how to do the above steps, it's the combo box where i get stuck
I have currently.
Code:
tblDropDownParkingPermitNumbers
lngParkingPermitNoID - Autonumber
strParkingPermitDesc - Short Text
Code:
tblParkingPermits
lngParkingPermitID - Autonumber
lngPeopleID - Foreign Key
lngParkingPermitID - Number
tblParkingPermits is the record source for frmParkingPermits
I did think of having a status "Standard Use" or "Expired or Cancelled"
In the combox selection on the parking permit form, have something like:
Code:
SELECT tblDropdownParkingPermitNumbers.lngParkingPermitNoID, tblDropdownParkingPermitNumbers.strParkingPermitDesc
FROM tblDropdownParkingPermitNumbers
WHERE (((Status)="Expired or Cancelled"))
The problem really is how do i assign a status to each parking permit number initially so that there all accessible
Thanks
Michael