K
kealaz
I have a form to enter new parts into our Parts Log system. When a new part
is entered, I would like a new entry to be created into TWO different tables.
tblPARTSLOG
and
tblNVENTORY
The information that the user is providing (for the new part) will only be
written to tblPARTSLOG.
tblPARTSLOG
PART_NO
DESCRIP
NAME
MANUF
MANUF_PN
When a new part is created, I also need a record to be created in
tblNVENTORY. Other than the PART_NO, which is how the tables are related,
all of the other fields should get the default value of 0.
tblNVENTORY
PART_NO
NO_ON_HAND
COST
VALUE
I have created a form, frmPARTSLOG, and have a subform in it, frmNVENTORY01.
All of the controls (text boxes) in my subform have the default values set
to the values that I want entered into the table (tblNVENTORY)
Problem:
When I enter info into the main form, nothing is being saved from the
subform.... unless I enter the subform and re-type the default value. If I
type in the subform, it does make the entry.
Right now, if I tab into the form and tab out w/o typing there is no entry
in tblNVENTORY. If I tab into the form and type in ONE control, then the
entry IS made. Is there a way to automate this process?
I want to eventually make the visibilty on the subform "no", so that the
entry is made in tblNVENTORY automatically, and the user doesn't even see the
subform.
Is what I'm trying to do possible?
Is using a subform the best way? or Is there an easier way?
Thank you very much for any help you can provide!!!
is entered, I would like a new entry to be created into TWO different tables.
tblPARTSLOG
and
tblNVENTORY
The information that the user is providing (for the new part) will only be
written to tblPARTSLOG.
tblPARTSLOG
PART_NO
DESCRIP
NAME
MANUF
MANUF_PN
When a new part is created, I also need a record to be created in
tblNVENTORY. Other than the PART_NO, which is how the tables are related,
all of the other fields should get the default value of 0.
tblNVENTORY
PART_NO
NO_ON_HAND
COST
VALUE
I have created a form, frmPARTSLOG, and have a subform in it, frmNVENTORY01.
All of the controls (text boxes) in my subform have the default values set
to the values that I want entered into the table (tblNVENTORY)
Problem:
When I enter info into the main form, nothing is being saved from the
subform.... unless I enter the subform and re-type the default value. If I
type in the subform, it does make the entry.
Right now, if I tab into the form and tab out w/o typing there is no entry
in tblNVENTORY. If I tab into the form and type in ONE control, then the
entry IS made. Is there a way to automate this process?
I want to eventually make the visibilty on the subform "no", so that the
entry is made in tblNVENTORY automatically, and the user doesn't even see the
subform.
Is what I'm trying to do possible?
Is using a subform the best way? or Is there an easier way?
Thank you very much for any help you can provide!!!