P
Peter
I am trying to create an interactive form where my salesforce can request up
to 15 products using the form. I want the form to have some unique fields
such a SalesRep and Customer name and also have a group of 5 fields (to input
information relating to each product) that may be repeated up to 15 times
depending on the number of products requested.
I would like the initial form to only include one group of 5 fields to allow
for the first product to be entered and also include a button or checkbox
that the sales rep could select for additional groups of fields to be added
to the form if more products need to be requested.
The form currently looks as follows:
1. Customer Name ____
2. Sales Rep Name ____
3. Product 1 Name ____
4. Product 1 Quantity ___
5. Product 1 Price ______
6. Product 1 Delivery Method _____
7. Product 1 Delivery Date _____
8. Add another product? [_]
==================
Fields 3 - 8 would be repeated here below if the checkbox on line 8 was
selected.
I have created a modified macro linked to the 'Run Macro on Exit' event
under the checkbox properties which unprotects the form, copies lines 3 to 8,
moves the cursor below line 8. pastes the new fields into theform and then
re-protects the form.
2 problems remain:
1. How do I check whether the checkbox is selected? Currently the copy/
paste macro runs everytime the checkbox loses focus and not only if it is
checked.
2. The programming required in problem 1 above has to work without the use
of bookmarks or field names becuase the new filed names are added
interactively when the macro runs and are not assigned by me. Is there a way
to refer to the checkbox without a hard coded name?
Please help I have tried everything that I know of but to no avail.
Many thanks.
to 15 products using the form. I want the form to have some unique fields
such a SalesRep and Customer name and also have a group of 5 fields (to input
information relating to each product) that may be repeated up to 15 times
depending on the number of products requested.
I would like the initial form to only include one group of 5 fields to allow
for the first product to be entered and also include a button or checkbox
that the sales rep could select for additional groups of fields to be added
to the form if more products need to be requested.
The form currently looks as follows:
1. Customer Name ____
2. Sales Rep Name ____
3. Product 1 Name ____
4. Product 1 Quantity ___
5. Product 1 Price ______
6. Product 1 Delivery Method _____
7. Product 1 Delivery Date _____
8. Add another product? [_]
==================
Fields 3 - 8 would be repeated here below if the checkbox on line 8 was
selected.
I have created a modified macro linked to the 'Run Macro on Exit' event
under the checkbox properties which unprotects the form, copies lines 3 to 8,
moves the cursor below line 8. pastes the new fields into theform and then
re-protects the form.
2 problems remain:
1. How do I check whether the checkbox is selected? Currently the copy/
paste macro runs everytime the checkbox loses focus and not only if it is
checked.
2. The programming required in problem 1 above has to work without the use
of bookmarks or field names becuase the new filed names are added
interactively when the macro runs and are not assigned by me. Is there a way
to refer to the checkbox without a hard coded name?
Please help I have tried everything that I know of but to no avail.
Many thanks.