Neither. Use a ListBox on your data entry form instead of a textbox. Open
your form in design view, click on menu VIEW - Properties. If you are using
a textbox now then delete it and replace with a listbox.
In the properties of the listbox enter your field name as Control Source
(you type it or select from field list by expanding the pulldown on the
right). Then in the properties of the listbox enter the below as Row Source
(I omited part the first time) --
SELECT Status_, Status FROM STATUS WHERE STEP =
IIF([Forms]![YourFormName]![YourListBoxName] = 1, 2,
IIF([Forms]![YourFormName]![YourListBoxName] = 2 OR
[Forms]![YourFormName]![YourListBoxName] = 3, 3))
--
KARL DEWEY
Build a little - Test a little
Anna said:
Thank you for the reply.
Am I doing it in query or in macro?
I'm quite new to the programming part of access, so could you please help me
with it?
Thanks again,
Anna
:
UNTESTED --
Build status table like this --
Step Status_ Status
1 1 Waiting on Scheduling
2 2 Approved
2 3 Cancelled
3 4 Completed
3 5 Contracted Out
3 6 Cancelled
Use a ListBox with the following source --
SELECT Status_, Status FROM STATUS WHERE STEP =
IIF([Forms]![YourFormName]![YourListBoxName] = 1, 2,
IIF([Forms]![YourFormName]![YourListBoxName] = 2, 3))
Default -- 1
--
KARL DEWEY
Build a little - Test a little
:
I am building work orders database and I have status list table that attached
to the WO form as combo box.
What I am looking for is to be able to organize the status in particular
order with no option to go back to previous status(step):
Step 1-Waiting on Scheduling
Step 2- Approved
or
Cancelled
Step 3- Completed
or
Contracted Out
or
Cancelled
Is it possible to do so?