Solved

Finding a record using criteria for bound controls

Posted on 2003-11-13
3
190 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
  • 2
3 Comments
 
LVL 7

Accepted Solution

by:
_agj_ earned 50 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

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

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…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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…
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…

929 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

14 Experts available now in Live!

Get 1:1 Help Now