AfterUpdate() vs. Click()

Sanchez

OSNN Junior Addict
Joined
8 Jun 2004
Messages
14
MICROSOFT ACCESS
The situation is: I have a listbox that lists cord blood ID #'s. When an item is selected from this list, information (such as Date, Type, etc.) are displayed in text boxes; this is taken directly from the table, I made it with a wizard. You can also select a date from the combo boxes and only the blood samples from that date will appear in the listbox. Or you can press a sort button and it will sort the blood samples by date.

When I open the form or update the listbox (either by the date combobox or sort button), I select the first item in the listbox by:

If CordLB.ListCount > 0 Then
CordLB.SetFocus
CordLB.ListIndex = 0
End If

It always selects the first item but the PROBLEM IS when the first item is selected under the Sort_Click() function, the information in the text boxes change to the info of the currently selected item; the first one. THIS is GOOD. However, when the first item is selected under Date_AfterUpdate(), the first item is highlighted but the information in the text boxes does not change. It just stays the same.

DO you know how I can get the information in the text boxes to update when I select the fist item in the AfterUpdate() function?? THANKS.
 

Members online

No members online now.

Latest profile posts

Also Hi EP and people. I found this place again while looking through a oooollllllldddd backup. I have filled over 10TB and was looking at my collection of antiques. Any bids on the 500Mhz Win 95 fix?
Any of the SP crew still out there?
Xie wrote on Electronic Punk's profile.
Impressed you have kept this alive this long EP! So many sites have come and gone. :(

Just did some crude math and I apparently joined almost 18yrs ago, how is that possible???
hello peeps... is been some time since i last came here.
Electronic Punk wrote on Sazar's profile.
Rest in peace my friend, been trying to find you and finally did in the worst way imaginable.

Forum statistics

Threads
62,015
Messages
673,494
Members
5,623
Latest member
AndersonLo
Back