Solved

Hitting the next button and at the same time change the drop down box display

Posted on 2014-02-06
9
290 Views
Last Modified: 2014-02-19
I have a database in which I hit the next record button and it moves to the next record when I do this.   One issue is the name that displays in the drop down box does not change when I hit the next button. How do I change that?

See attached sample database.
CRM-Version-2.1-Sample--22-.accdb
0
Comment
Question by:lehi52
  • 4
  • 4
9 Comments
 
LVL 84
ID: 39840733
Which dropdown box? What should it change to?

When you post your database be sure to give specific instructions on recreating your issue. Many of the Experts here will grow very tired very quickly of trying to read your mind :)

Also, please Compact your database before uploading. While most enjoy a high-bandwidth, high-speed connection many of the Experts are still working on much slower connections.
0
 
LVL 10

Expert Comment

by:Gozreh
ID: 39841082
To answer your question we need more specific info (as Scott said).
But overall to let you know, next record will only move bound fields, all unbound fields will stay the same.
0
 

Author Comment

by:lehi52
ID: 39841888
There are two drop downs at the top left of the contact form.  It is the right drop down box that has the names of people listed.  It needs to change to the name of the person on whose record it is.
0
 
LVL 10

Expert Comment

by:Gozreh
ID: 39842147
You can use the OnCurrent event to fill in the combo box with the person name, like Me.Dropdown = Me.Person
0
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 

Author Comment

by:lehi52
ID: 39842843
I dont see an on current event.  There is a on Change?
0
 
LVL 10

Expert Comment

by:Gozreh
ID: 39842867
Private Sub Form_Current()

End Sub

Open in new window

0
 

Author Comment

by:lehi52
ID: 39843074
I tried this and it does not seem to be working.  I just put it into the VPA.

Private Sub Form_Current()
    Me.Dropdown = Me.Connam_Name
End Sub

Open in new window

0
 
LVL 10

Accepted Solution

by:
Gozreh earned 500 total points
ID: 39846008
Whats the name of your combobox ?? isn't "Display", so you should write
Private Sub Form_Current()
   Me.display = Me.ContactID
End Sub

Open in new window

0
 

Author Closing Comment

by:lehi52
ID: 39846215
Good job.  Thanks it worked
0

Featured Post

Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

Join & Write a Comment

It took me quite some time to sort out all the different properties of combo and list boxes available from Visual Basic at run-time. Not that the documentation is lacking: the help pages are quite thorough and well written. The problem was rather wh…
I originally created this report in Crystal Reports 2008 where there is an option to underlay sections. I initially came across the problem in Access Reports where I was unable to run my border lines down through the entire page as I was using the P…
Familiarize people with the process of utilizing SQL Server stored procedures from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Micr…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now