473,395 Members | 2,713 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Continuous Form GoTo specific record

Using Access 2000. I have a continuous form which for simplicity sack
has two fields Social Security Number and Last Name.

In the header of the continuous form I have a textbox where you can
type in any part of a social security number and when you do I want it
to take the user to the closest match SSN record in the continuous
form.

For Example you have three records
SSN LastName
111-11-11111 Jones
222-22-22222 Smith
333-33-33333 Tyler

Is the user types in a 2 in the textbox and clicks the find button;
the first record in the continuous form will be SSN 222-22-22222 and
you would still have the ability to scroll up
or down to see the records above and below.

Right now I am using a Filter. For example when the user types in a
2, I do a filter saying give me all SSNs which are >= 2. This works
ok but the user can not scoll up.
Any help would be appreciated.

Mar 21 '07 #1
3 11555
eighthman11 wrote:
Using Access 2000. I have a continuous form which for simplicity sack
has two fields Social Security Number and Last Name.

In the header of the continuous form I have a textbox where you can
type in any part of a social security number and when you do I want it
to take the user to the closest match SSN record in the continuous
form.

For Example you have three records
SSN LastName
111-11-11111 Jones
222-22-22222 Smith
333-33-33333 Tyler

Is the user types in a 2 in the textbox and clicks the find button;
the first record in the continuous form will be SSN 222-22-22222 and
you would still have the ability to scroll up
or down to see the records above and below.

Right now I am using a Filter. For example when the user types in a
2, I do a filter saying give me all SSNs which are >= 2. This works
ok but the user can not scoll up.
Any help would be appreciated.
In the AfterUpdate event you could enter some code like
Dim rst As DAO.Recordset
set rst = Me.RecordsetClone
rst.FindFirst "SSN = '" & Me.TextBoxName & "'"
If not rst.NoMatch Then Me.BookMark = rst.BookMark
rst.close
set rst = Nothing

I have no idea what your textbox name is.
Mar 21 '07 #2


Look into using the RecordsetClone and bookmark properties as well as
the Find methods (assuming DAO). The wizard used when creating form
controls will generate code that's fairly easy to modify to suit your
needs.

Mar 21 '07 #3
On Mar 21, 11:18 am, "storrboy" <storr...@sympatico.cawrote:
Look into using the RecordsetClone and bookmark properties as well as
the Find methods (assuming DAO). The wizard used when creating form
controls will generate code that's fairly easy to modify to suit your
needs.
I would like to thank everyone for their help. The FindRecord worked
great. All I had to do was add a wildcard "*" to the end of the
search criteria that the user types in the text box. This brings me
to the closest match record in the continuous form.
Thanks again.

Mar 21 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Mark | last post by:
Hi there, I have a subform, set as a continuous form. When a user selects a particular record in that subform, how can I make that particular record stand out (color or font change, size, etc) from...
3
by: David | last post by:
Hi, I need a button shown for each record (cont. form) with specific captions on each. I have a notes form for each record. When a user presses the button they can read the notes. I want to...
7
by: Paolo | last post by:
I have a save button in a continuous form called Purchase Order. The button contains several conditional statements which make sure that all mandatory fields are properly filled out by the user....
5
by: Armando | last post by:
I recently saw the tail end of a "Continuous forms" discussion, but not enough was available to see if this will be a PITA repeat question. Sorry if it is. On a form with its Default View...
4
by: Kathy | last post by:
What is the standard technique for handling the fields in the following scenario on a continuous form? Multiple Divisions. Each Division has multiple Buildings. Each Building has a Supervisor. ...
14
by: Mark | last post by:
How can the instances of a textbox control on an continuous form be addressd? Can a specific instance be addressed? For example, a continuous form has ten records. How can the textbox for the...
3
by: Typehigh | last post by:
I am a good programmer, but this one stumps me! I have a form with a continuous subform. The continuous subform contains records of data and may reach a depth of 1000's of entities. I have...
2
by: ThompsonJessical | last post by:
I am trying to use a button with the vba coding for SendObject Function to email a specific report based on the value of another field of the current record. The form is a continuous form and...
13
by: eighthman11 | last post by:
using Access 2003 and sql server version 8.0 Hey everyone. Created a text box where the user types in an Inventory number and it takes them to that inventory number on the contimuous form. The...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.