L.S.
The intention of the following code is to lookup the artDescrip in the
contraceptive table, using the description (which is a combobox) from the
subform visits1. The main form is called "registration form".
I coded it as follows:
Dim varX As Variant
Set dbs = CurrentDb
Set rst = dbs.OpenRecordset("Transaction Table", dbOpenTable)
varX = DLookup("[ArtDescrip]", "Contraceptives", "[Contraceptives] = '" _
& Forms![REGISTRATION FORM]![visits1]!Contraceptives)
rst("ArtDescrip") = varX
Could you please give me a hint on how to do this, as I'm getting the run
error 438, saying that "object does not support this object or method".
Thanks in advance
Stella Pieters
--
Message posted via
http://www.accessmonster.com