jwindon
08-26-2001, 03:01 PM
I used an excerise in one of my books to make command buttons do: AddRecord, Edit Record and Save Record. The ViewForm is set to AllowEdits=False and AllowAdditions=False and AllowDeletions=False.
The buttons do their job, changing properties just fine to allow edits and saving, but the AddRecord gives me the error "Cannot go to that record". The Code DOES turn the AllowAdditions to True before moving to acNewRecord.
In addition, I wanted the AllowEdits, etc. to go back to read-only properties when moving in between records. I put in on the OnCurrentEvent. It doesn't work.
I guess the problem is somehow related to a combobox called FastFind that looks up the corresponding controls based on its selection (Option 3 of the ComboBox wizard). If the form is read-only, I cannot use the combobox. I already changed it's property to OnFocus, Combobox, AllowEdits=True
What am I doing wrong? Besides being long-winded.
The buttons do their job, changing properties just fine to allow edits and saving, but the AddRecord gives me the error "Cannot go to that record". The Code DOES turn the AllowAdditions to True before moving to acNewRecord.
In addition, I wanted the AllowEdits, etc. to go back to read-only properties when moving in between records. I put in on the OnCurrentEvent. It doesn't work.
I guess the problem is somehow related to a combobox called FastFind that looks up the corresponding controls based on its selection (Option 3 of the ComboBox wizard). If the form is read-only, I cannot use the combobox. I already changed it's property to OnFocus, Combobox, AllowEdits=True
What am I doing wrong? Besides being long-winded.