A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Sorting while entering data



 
 
Thread Tools Display Modes
  #1  
Old January 5th, 2008, 05:10 AM posted to microsoft.public.access.forms
BamaTaylor
external usenet poster
 
Posts: 2
Default Sorting while entering data

Thanks in advance for any assistance. I've read all the posts and still need
help.

I've probably explained more than necessary to frame my total issue:
TableA contains Field1, 2 and 3 (Y/N field).
QueryA appends Field1 and Field2 where Field3=Yes to empty temp TableB.
TableB Field1 is a lookup field bound to TableA Field1 (data-entry control).
FormB's recordsource is TableB.
User opens FormB (continuous view), edits existing and enters new records.
User can duplicate existing record to expedite entry using command button.

Issue 1:
Records appear in order entered (TableB order). How can I
update/refresh/etc. data after new record entered so that all records now
appear sorted in Field1, without use having to sort each time?

Issue 2:
When user clicks Duplicate Record command button, new record added at bottom
of form, but user must scroll to bottom of continous form to see this new
record that now has focus (I think). How can user duplicate record with
command button, sort be performed to position records in sorted order, and
user see new record without having to scroll (find) it?

Many thanks,




  #2  
Old January 5th, 2008, 06:35 AM posted to microsoft.public.access.forms
John W. Vinson
external usenet poster
 
Posts: 18,261
Default Sorting while entering data

On Fri, 4 Jan 2008 21:10:01 -0800, BamaTaylor
wrote:

Issue 1:
Records appear in order entered (TableB order). How can I
update/refresh/etc. data after new record entered so that all records now
appear sorted in Field1, without use having to sort each time?


A table HAS NO ORDER.

Rather than basing your form on the Table, base it on a Query sorted by
Field1.

Issue 2:
When user clicks Duplicate Record command button, new record added at bottom
of form, but user must scroll to bottom of continous form to see this new
record that now has focus (I think). How can user duplicate record with
command button, sort be performed to position records in sorted order, and
user see new record without having to scroll (find) it?


Only by using code to add the record to the table, and then requery the form
and navigate again to the selected record.

John W. Vinson [MVP]
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 12:47 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.