order.db orderdetail.db Inventory.db
ordernum ------>ordernum
dept itemname <-------itemname
date quantity category
Instock
Do you have some code on your canDepart method for that drop down field
which is checking to be sure the item is on the drop down list? If so, I
would remove that. If you need to ensure they only pick from your list then
you could do something like I have implemented. I have two fields on top of
each other for doctor. One is just the doctor name displayed from the
linked full list of doctors. The other is my drop down list field. The
name field is visible and on top and the dropdown field is behind that and
invisible. If the user starts to type in the name field I make that
invisible and show the drop down list. Once they pick a name, I look it up
in the underlying table and store that ID in another invisible field on the
form. That causes the name field to now reflect the current selected
doctor. I then make the name field visible and hide the drop down field.
This is kind of a pain but the user really wanted a drop down field. My
preference would have been to have the name field non editable and capture
the key char or key physical event and use that to display my own small
lookup form or pop-up menu (if the list was small enough). Then I fill the
name field from code.
In both of these the result is the same - I can display any value whether it
is currently available for selection or not, and I restrict their data entry
to only valid selections.
HTH,
Carolyn
"Richmond Dyes" <rd...@monroehosp.org> wrote in message
news:4163e096$1_2@cnews...
Inventory
IID long int key
SKU
Description
etc.
Stock
IID long int key
qty
Denn Santoro
President
Resource Development Associates
http://www.RDAWorldWide.Com
Offices in the United States and Germany
Providing solutions to health care, business, governments and non-profits
since 1982