olivercastell
New member
- Local time
- Today, 07:05
- Joined
- Mar 5, 2004
- Messages
- 9
hi,
I got pointed in the right direction with dlook up to solve this problem, but i cant for the life of me get it to work, so any help would be greatly appreciated.
I have two main tables:
batch record
this contains information on each batch, including patient details, date of manufacture, label code (this identifies the drug), dose etc etc.
Cytotoxic products table
this contains the label code (unique identifier of product), drug, route of administration, warnings, usual dose, usual volume.
I have a form for inputtung data into the batch record table
batch record form
relevent fields for this question are: label code and dose
the databse is used to generate labels for the drugs (products) and also for statistics etc
certain products are always the same dose, and hence the usual dose value in the cytotoxic products table. What i am trying to do is when you enter the label code on the form the dose field on the form is updated to contain the usual dose for that product (taken from the cytotoxic products table)
I need this valueable to be overridable though, for those few cases where we are required to make those products at a different dose.
I have been trying to use dlookup on exit of the label code field on the form. however im not having much luck. This is the first time i have used visual basic and after trawling the internet for examples i still cant get it to work.
If anyone could give me a hand, it would be greatly appreciated.
I hope all the above makes sense.
thanks very much
oliver
I got pointed in the right direction with dlook up to solve this problem, but i cant for the life of me get it to work, so any help would be greatly appreciated.
I have two main tables:
batch record
this contains information on each batch, including patient details, date of manufacture, label code (this identifies the drug), dose etc etc.
Cytotoxic products table
this contains the label code (unique identifier of product), drug, route of administration, warnings, usual dose, usual volume.
I have a form for inputtung data into the batch record table
batch record form
relevent fields for this question are: label code and dose
the databse is used to generate labels for the drugs (products) and also for statistics etc
certain products are always the same dose, and hence the usual dose value in the cytotoxic products table. What i am trying to do is when you enter the label code on the form the dose field on the form is updated to contain the usual dose for that product (taken from the cytotoxic products table)
I need this valueable to be overridable though, for those few cases where we are required to make those products at a different dose.
I have been trying to use dlookup on exit of the label code field on the form. however im not having much luck. This is the first time i have used visual basic and after trawling the internet for examples i still cant get it to work.
If anyone could give me a hand, it would be greatly appreciated.
I hope all the above makes sense.
thanks very much
oliver