F
Frank Martin
I have a subform "SuppTxnsSUB" based on the tblSuppTxns, and a particular
supplier's transactions are selected vis a plain combo box (no wizard) by
having the combo as the Master to the "SuppTxnsSUB"'s Child.
This works well.
My aim is to go to a new record in the subform for a combo-selected
supplier, and I hoped to do this by making the tblSuppTxns "DateEntry" set
to 'yes' in the properties.
But this does not seem to work when a table is expressed in a subform! Why?
To get around this I put some code behind the subform's "OnEnter" property
as follows:
" RunCommand acCmdRecordsGoToNew"
This works well if a supplier has previous transactions in the recordset,
but fails completely for a new supplier with no records as yet and this
gives an error
"unable to goto new".
How can I end up with the cursor in a new record in "SuppTxnsSUB" even if
there are records present or not?
Plesae help, Frank
supplier's transactions are selected vis a plain combo box (no wizard) by
having the combo as the Master to the "SuppTxnsSUB"'s Child.
This works well.
My aim is to go to a new record in the subform for a combo-selected
supplier, and I hoped to do this by making the tblSuppTxns "DateEntry" set
to 'yes' in the properties.
But this does not seem to work when a table is expressed in a subform! Why?
To get around this I put some code behind the subform's "OnEnter" property
as follows:
" RunCommand acCmdRecordsGoToNew"
This works well if a supplier has previous transactions in the recordset,
but fails completely for a new supplier with no records as yet and this
gives an error
"unable to goto new".
How can I end up with the cursor in a new record in "SuppTxnsSUB" even if
there are records present or not?
Plesae help, Frank