Thank you all for your input. I have it working now.
For your info if you are just curious....
These list boxes are on one form used to receive shipments.
List77 is a listing of open POs to outside processors and raw material
suppliers. When the user selects the company they are receiving goods from,
it re-queries List77 to show only POs to that vendor. When a PO is selected
from List77, it requires List86 and List93 to show only shippers and/or
releases against Purchase Orders related to that PO.
List86 is a listing of Shipments to Outside Processosrs that need to be
completed and returned. The user would click on the out-going shipper # that
they want to receive returned material against. This then reduces the
quantity at the outside processor until it reaches zero and then that shipper
no longer appears.
List93 is a list box of Open Releases against Purchase Orders for Raw
Material. The user clicks on it to select the release they are receiving raw
material against. This then reduces the quantiy due until that realease hits
zero and it no longer appears on the listing.
I was trying to set focus to one or the other list box because the user was
having to click several times to get the data to fill-in onto the form. The
first click was to get the focus to the list box....then the second or third
would fill-in the data.
So now, if List86 is empty because the PO selected was for raw material not
out sourced operations, the focus will go to List93 and visa versa.
Thank you again for all your help. It is working now.
neenmarie said:
Pls disregard....has been answered
Thank you
neenmarie said:
Can someone help me with an if then statement?
I'd like to acheive the following:
If([list86] is null, [list93].setfocus, [list86].setfocus)