![]() | |
![]() |
| | Thread Tools | Display Modes |
#21
| |||
| |||
|
#22
| ||||||
| ||||||
|
|
Tina the only thing that happened was that the unfinished mainform record was saved to the table. that's a normal occurrence, and there's no way to change that behavior in a bound mainform, AFAIK. if you have code running in the mainform's BeforeUpdate event to check for missing data, or if there are any fields in the underlying table set to Required, then the system is going to demand that you either enter the data so the new record can save - or undo (Esc) the new record - before entering the subform. This apparently is my problem. The new record, due to (Required & Validation checks) during data entry, is not being committed to the table when I attempt to scroll the subform. |
|
So, I guess Access is locking up the scroll effort, even though there is no intention to modifiy any data in the subform. I would think that since the data was not saved to the table, that there should be no reason to lockup the subform for viewing. |
|
Interestingly, it does work if I use a button to popup the same subform, while entering data in the new record. |
|
Thank you so much for the excellent tips. |
|
I had no idea, that I could tie the LinkMasterField to a textbox. I had the impression that it had to tie to a table field directly. |
|
Greg |
#23
| |||
| |||
|
|
Tina, this is the culprit! I'm using this code to keep the user in the new record (condition "1"), and forcing use of (Undo/Save/Quit) buttons. Private Sub Form_BeforeUpdate(Cancel As Integer) 'stay on new record until save or quit If (Me.OpenArgs = "1") And (Not (blnDone)) Then Cancel = True End If If (Me.OpenArgs = "3") And (Me.Dirty) Then If Not blnDone Then MsgBox "Please (Undo) (Save) or (Quit)", vbExclamation, "Not Complete" Cancel = True End If End If End Sub |
#24
| |||
| |||
|
|
use a listbox (you didn't answer my earlier question in this thread, regarding what problems >>you encountered in using a query with calculated fields as the RowSource of a listbox control). |
#25
| |||
| |||
|
|
use a listbox (you didn't answer my earlier question in this thread, regarding what problems >>you encountered in using a query with calculated |
![]() |
| Thread Tools | |
| Display Modes | |
| |