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  

Combo boxex, indexing, updating...



 
 
Thread Tools Display Modes
  #1  
Old June 4th, 2008, 01:52 AM posted to microsoft.public.access.forms
Agzmdv
external usenet poster
 
Posts: 1
Default Combo boxex, indexing, updating...

I have a "Combo/List" box to quickly pull records by clients account number.
When I use it to access records, it works fine by populating the fields in
the form. If I add records, they do not appear in the combo box unless I
save, then exit the the data base file. Also, the combo box pull down does
not keep the records in alpha-numeric order after using it to pull records.
Any suggestions to keeping the "index" sorted and updated as records are
added?
  #2  
Old June 4th, 2008, 02:42 AM posted to microsoft.public.access.forms
John W. Vinson
external usenet poster
 
Posts: 18,261
Default Combo boxex, indexing, updating...

On Tue, 3 Jun 2008 17:52:01 -0700, Agzmdv
wrote:

I have a "Combo/List" box to quickly pull records by clients account number.
When I use it to access records, it works fine by populating the fields in
the form. If I add records, they do not appear in the combo box unless I
save, then exit the the data base file.


Requery the combo box in the AfterUpdate event of whatever form you're using
to add new records. If you're adding records directly in the table... don't.
Table datasheets aren't designed for data interaction.

Also, the combo box pull down does
not keep the records in alpha-numeric order after using it to pull records.
Any suggestions to keeping the "index" sorted and updated as records are
added?


Base the Combo on a Query sorting the records in the order you want, rather
than directly on the table.
--

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 06:26 PM.


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