Hi all,
I am brand new to using arrays and think that they may present an a good method to avoid lengthy nested IF statements.
My array contains 10 values, each the contents of a textbox control on a form.
eg arrMVL = Array(Forms!MyForm!txt1.Value, Forms!MyForm!txt2.Value, ...)
I want to:
- Examine the array
- Determine which fields are NULL or ""
- Rebuild the array with only populated fields.
- Determine how many values are in the new array
I will then write this data to my table.
Could anyone provide me with any advice on how to achieve this?
Thank you
Rob
I am brand new to using arrays and think that they may present an a good method to avoid lengthy nested IF statements.
My array contains 10 values, each the contents of a textbox control on a form.
eg arrMVL = Array(Forms!MyForm!txt1.Value, Forms!MyForm!txt2.Value, ...)
I want to:
- Examine the array
- Determine which fields are NULL or ""
- Rebuild the array with only populated fields.
- Determine how many values are in the new array
I will then write this data to my table.
Could anyone provide me with any advice on how to achieve this?
Thank you
Rob