B
Brian Hoffman
I would like to type a new value into a combo box to be entered into a lookup
table. Here are the details:
tbl1 (Text Field, PK auto#)
tbl2 (FK, Text Field, PK auto#)
Form: Bound to tbl2.
tbx to enter new value in Text Field
cbo to select/enter FK
I am attempting to use code found on Allen Browne's website
(http://allenbrowne.com/ser-27-01.html), but I am having trouble with it. He
explains in the article that his technique is specific to lookup tables with
a single field. Could tbl1 be the issue since it has the PK auto# as well?
Also, the vfield variant in his code is confusing me. I am having trouble
understanding if I have defined it properly. In my debugging, it appears to
run correctly until the line "rst(vField) = NewData". At this point Error
3265 appears.
table. Here are the details:
tbl1 (Text Field, PK auto#)
tbl2 (FK, Text Field, PK auto#)
Form: Bound to tbl2.
tbx to enter new value in Text Field
cbo to select/enter FK
I am attempting to use code found on Allen Browne's website
(http://allenbrowne.com/ser-27-01.html), but I am having trouble with it. He
explains in the article that his technique is specific to lookup tables with
a single field. Could tbl1 be the issue since it has the PK auto# as well?
Also, the vfield variant in his code is confusing me. I am having trouble
understanding if I have defined it properly. In my debugging, it appears to
run correctly until the line "rst(vField) = NewData". At this point Error
3265 appears.