?
Solved

Finding a record using criteria for bound controls

Posted on 2003-11-13
3
Medium Priority
?
223 Views
Last Modified: 2010-05-03
I am trying to add an extra textbox/combo to help me insert search criteria so that users can go to a particular record without having to resort to the use of findnext and findprevious only.
I tried to do it like this:

Private Sub FindSICode_AfterUpdate()
    DoCmd.FindRecord Me.FindSICode
End Sub
This keeps on giving me the error 'Ther command or action "FindRecord" isnt available now'
This can easily be implemented when u r dealing with unbound controls but I would like to find out if its possible to do it with bound controls.Thanx a lot
0
Comment
Question by:briokas
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 7

Accepted Solution

by:
_agj_ earned 100 total points
ID: 9739532
cant u do it like

datacontrol.datasource = "select * from table1 where field1='" & text1.text &"'"
0
 
LVL 7

Expert Comment

by:_agj_
ID: 9739537
mebbe u mite need to do a datacontrol.refresh or requery also.

also, text1 would be the place where u enter ur search criteria for field1
0
 

Author Comment

by:briokas
ID: 9753770
Tried that method it didnt help me I guess the only alternative is to use unbound controls
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses
Course of the Month12 days, 22 hours left to enroll

777 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