Solved

dbCombo and Data Control

Posted on 1998-08-08
4
155 Views
Last Modified: 2010-04-30
I know the answer is probably in paq but it's worth the points to not search all day. My question is.....
How do I make whatever I select from my dbCombo Dropdown the current record in my data control? VB5
0
Comment
Question by:DPPro
  • 3
4 Comments
 
LVL 9

Expert Comment

by:Dalin
Comment Utility

DPPro,
In the dbCombo's Change event, add:
dataControlName.Recordset.FindFirst "YourFieldName = " & dbCombo.Text
Any problems let me know.
Regards
Dalin

0
 

Author Comment

by:DPPro
Comment Utility
This didn't work.
0
 
LVL 9

Expert Comment

by:Dalin
Comment Utility
DPPro,
Explain how you set your dbcombo? posibly post your code.
Regards
0
 
LVL 9

Accepted Solution

by:
Dalin earned 100 total points
Comment Utility
Sorry, I missed the two single quotes:


       dataControlName.Recordset.FindFirst "YourFieldName = '" & dbCombo.Text & "'"
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

744 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

12 Experts available now in Live!

Get 1:1 Help Now