Dataset view reversal, new record on top

A

Al Hotmail

I have a subform that is in dataset view, it is sorted by date with the most
resent as the first row.
When I want to add a new record I have to go to the bottom of the dataset to
get to a blank record row.
I want to have the new record row at the top of the data set.
Can this be done?, HOW?
Thank I advance Al
 
J

John W. Vinson

I have a subform that is in dataset view, it is sorted by date with the most
resent as the first row.
When I want to add a new record I have to go to the bottom of the dataset to
get to a blank record row.
I want to have the new record row at the top of the data set.
Can this be done?, HOW?
Thank I advance Al

You'll need to get tricky here. There's no way to put the new record at the
top in a datasheet or continuous form. What you'll need to do is use TWO
subforms - one, on top, with its Data Entry property set to Yes; Allow
Additions = Yes, set to one row high. Directly jammed under it put a second
subforms, Allow Edits = Yes, Allow Additions and Data Entry = No, to display
the existing records.
 
A

AlTamres

nice approach
how do I remove the header from the dataset on the bottom?
after I enter the last field data I want it to enter it into the bottom
table and clear the entry dataset and return to the first field?
Thanks again
al
 
J

John W. Vinson

nice approach
how do I remove the header from the dataset on the bottom?
after I enter the last field data I want it to enter it into the bottom
table and clear the entry dataset and return to the first field?

Use a Continuous Form for both subforms (instead of a Datasheet); requery both
subforms in the AfterUpdate event of the data entry subform. You might need to
use

DoCmd.GoToRecord acForm, "Forms!mainform.Subformname.Form", acNewRecord

rather than requerying.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top