G
Guest
I have a form that pulls data into a subform. Two of the fields that are
pulled into the subform are RFQType (choices are only R or C), and Product
Number (generally 1, 2, or 3) .
I need to create some code that will look at these two fields on the subform
and then search data from a table(s) and input the found data into the
subform (or another subform if necessary). If I was in Excel, I'd have a
formula (if statement) for each cell I needed to fill up. Is this the same
for Access?
Additionally, there are several categories, and I'm thinking about making
several tables, one for each category. i.e.:
Table Name 1 (Category): TM
Field 1: Product Number
Field 2: Percent
Field 3: Description
Field 4: RFQType
Table Name 2 (Category): PMO
Field 1: Product Number
Field 2: Percent
Field 3: Description
Field 4: RFQType
I'm thinking this is some sort of loop, but I'm a beginner and just
beginning to understand and work with VBA. If I was in Excel, I'd create an
if statement. If this is possible using an IIf statement, I'd be very happy.
Otherwise, any help on the coding would be greatly appreciated.
pulled into the subform are RFQType (choices are only R or C), and Product
Number (generally 1, 2, or 3) .
I need to create some code that will look at these two fields on the subform
and then search data from a table(s) and input the found data into the
subform (or another subform if necessary). If I was in Excel, I'd have a
formula (if statement) for each cell I needed to fill up. Is this the same
for Access?
Additionally, there are several categories, and I'm thinking about making
several tables, one for each category. i.e.:
Table Name 1 (Category): TM
Field 1: Product Number
Field 2: Percent
Field 3: Description
Field 4: RFQType
Table Name 2 (Category): PMO
Field 1: Product Number
Field 2: Percent
Field 3: Description
Field 4: RFQType
I'm thinking this is some sort of loop, but I'm a beginner and just
beginning to understand and work with VBA. If I was in Excel, I'd create an
if statement. If this is possible using an IIf statement, I'd be very happy.
Otherwise, any help on the coding would be greatly appreciated.