On the surface this seems like a relatively simple VBA code problem, but I cannot get my head round the concept of the 'Find' property and dealing with code that will define data entry based on two fields!
Any help on any of the points I have outlined below would be absolutely fantastic and enable to me to virtually complete the database I am currently trying to build. I would like to thank anyone in advance for providing any input into the problem I have outlined below:
I have managed to write a 'Do While' loop which updates a combobox selection from an open (variable) vertical data array. The array contains dates (mm-yy) in chronological order, and must correspond to another combobox selection containing 'project names' (chosen by the user) with an equivalent loop structure. Now I need to write some code which will:
1. Acknowledge that a selection from the list has been made (by the user) in a combobox.
2. Check to see whether this entry has been made before in the database which must also depend on an item selected from the other combobox (possibly using the 'Find' property?!!).
3. If the entry has not been made before, it must choose where to make the entry (i.e. by finding the correct row down in chronological order. e.g. if an entry for a date has previously been made say for April 2002 for a specific project name, then the code will need to search for this entry and insert a row and the corresponding entries of data below it if say you were entering data for May 2002 for that project).
As I said if anyone has a clue about producing code to solve any one of these ideas I would be most grateful.
Regards,
Bruce
Any help on any of the points I have outlined below would be absolutely fantastic and enable to me to virtually complete the database I am currently trying to build. I would like to thank anyone in advance for providing any input into the problem I have outlined below:
I have managed to write a 'Do While' loop which updates a combobox selection from an open (variable) vertical data array. The array contains dates (mm-yy) in chronological order, and must correspond to another combobox selection containing 'project names' (chosen by the user) with an equivalent loop structure. Now I need to write some code which will:
1. Acknowledge that a selection from the list has been made (by the user) in a combobox.
2. Check to see whether this entry has been made before in the database which must also depend on an item selected from the other combobox (possibly using the 'Find' property?!!).
3. If the entry has not been made before, it must choose where to make the entry (i.e. by finding the correct row down in chronological order. e.g. if an entry for a date has previously been made say for April 2002 for a specific project name, then the code will need to search for this entry and insert a row and the corresponding entries of data below it if say you were entering data for May 2002 for that project).
As I said if anyone has a clue about producing code to solve any one of these ideas I would be most grateful.
Regards,
Bruce