473,698 Members | 2,571 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 11580
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.RecordsetClo ne
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...@sympa tico.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
7914
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 the other records in the list? Thank you in advance, Mark
3
6774
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 display a caption on the button to state either "Order Notes" or "READ NOTES". I placed a label over the button, and depending if the notes field is
7
2023
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. When the button in clicked it only applies the statement to the record the cursor is currently working on. I would like the button to apply to all the records. I tried a Do/Loop statement sending the focus to the next record, but once it gets to the...
5
2202
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 set to Continuous Forms, I need to catch the event when the repeating section iterates for each record in the underlying table. I have buttons on the repeating section which will get their captions from the current line in the table, or which will...
4
3170
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. Tables: (abbreviated) TblDivision DivisionID
14
8252
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 eighth record be addressed? Thanks, Mark
3
15404
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 created a search button on my form and it does its job quite well. It presents the user with an inputbox, prompting for the string to search. Then the code returns with a record number of the record which contains the string. Here's the problem. I...
2
3263
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 the values are either of the field are "IACUC" or "IBC". If the value is IACUC, I want the IACUC report to send, if IBC the IBC report to send. The email button is located on the continous form details with the record specified and report is...
13
3448
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 form is based on a link table to sql server. Here is the code: Dim rst As DAO.Recordset Dim InventoryItem As String InventoryItem = "'" & "TextBoxValue" & "'"
0
9170
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8902
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8873
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6528
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5862
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4372
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4623
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3052
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2007
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.