Solved

dbCombo and Data Control

Posted on 1998-08-08
4
156 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
ID: 1468309

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
ID: 1468310
This didn't work.
0
 
LVL 9

Expert Comment

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

Accepted Solution

by:
Dalin earned 100 total points
ID: 1468312
Sorry, I missed the two single quotes:


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

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Determine Range to Select 5 42
Crystal reports - Formula Field code need assistance with code 17 51
MsgBox 4 45
Set email body to html using vbscript 6 22
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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 utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

919 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

21 Experts available now in Live!

Get 1:1 Help Now