473,770 Members | 1,833 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Goto next record w/filter (Repost)

I need to put a button that allows the user to move to the next record. On
the form, I have a list of employees that are filtered by the company they
work for.

Obviously, if I use the simple Gotorecord command, it will pull up the next
record regardless of what company that employee works for. So...

1) I need the button to take the user to the next record where the company
(field is CompanyID) matches the company on the form.

2) I need the list box that displays the employees specific to the company,
to highlight/select the employee to which the next record function takes them.
Thanks in advance!

B

(reposted after no reply)

--
Message posted via http://www.accessmonster.com

Sep 15 '07 #1
2 3219
bhipwell via AccessMonster.c om wrote:
I need to put a button that allows the user to move to the next record. On
the form, I have a list of employees that are filtered by the company they
work for.

Obviously, if I use the simple Gotorecord command, it will pull up the next
record regardless of what company that employee works for. So...

1) I need the button to take the user to the next record where the company
(field is CompanyID) matches the company on the form.

2) I need the list box that displays the employees specific to the company,
to highlight/select the employee to which the next record function takes them.
Thanks in advance!
How are your presenting your data? As a main form (company) with
subform (employees at that company)? How can you have a filter for
employees at one company and have it move to some other company? It the
GoToRecord executing for the company or for the employee?
>
B

(reposted after no reply)
Sep 15 '07 #2
Salad,

I figured it out through a similar post. I had a list box that on its own
was filtering out only those employees that matched the company choosen on a
previous form. All I did was set the filter on open to the Company ID.
Thanks!

B

--
Message posted via http://www.accessmonster.com

Sep 17 '07 #3

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

Similar topics

2
1749
by: Doslil | last post by:
hi, I have a drop down list on the main form which has a query attached to it.Looks like the record is not moving to the next record,cos when I select the next record from the list it gives an error message "the record could not saved ,it could create a duplicate values in the index,primary key or relationship............".I am also getting this message when I click on the record selectors. Can anyone please give me any tips
7
2256
by: RC | last post by:
When I am adding records to a database and each record is unique by the Serial Number. I would like to step through my code adding records unless the Serial Number already exists in the database. If the record already exits, then I would like to pop up a form, in pop-up, dialog mode. The form will ask if the user wants to make changes to the existing record and go back to the form and not make any changes. The code stops because the...
37
3257
by: Tim Marshall | last post by:
From http://www.mvps.org/access/tencommandments.htm 9th item: Thou shalt not use "SendKeys", "Smart Codes" or "GoTo" (unless the GoTo be part of an OnError process) for these will lead you from the path of righteousness. What about also using it as a means of exiting a procedure?
0
3645
by: Patrick | last post by:
I'm working on a contact management application, and need a hand with one aspect... Here's what I want to create: ------------------------------------ A form split into two parts. There is a datagrid on the left side that lists names and perhaps a couple of other key fields. The user can click on a record in the datagrid, which should automatically pull up details on that record in the various text boxes and other controls on the right...
10
5038
by: ApexData | last post by:
Hello How do I goto a specific record in a BOUND form when the form has a primary index of ID which is autonumbered. I need to visit 4 seperate records, one at a time. This works for RecNO but no good for Field search: DoCmd.GoToRecord , , acGoTo, 19 And I know is NOT recommended.
0
1758
by: Kaspa | last post by:
Hello, I have been trying to goto the next record once I update the subform. anybody knows how I can accomplish this. Thanks in advance. Kasparov
3
11583
by: eighthman11 | last post by:
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
22
2088
AccessIdiot
by: AccessIdiot | last post by:
Anyone getting sick of me yet? :D I have a button on my form that opens a new form but with a filter: stDocName = "frm_Specimen_Entrainment" stLinkCriteria = "=" & Me! DoCmd.OpenForm stDocName, , , stLinkCriteria This works really well except that, as expected, I can't add new records. Interestingly, you can click the "next record" button and it will show a blank form (and then grey out) but the Entrainment_ID goes blank...
4
1337
by: kaza | last post by:
<script language="JavaScript1.2"> var testresults function checkemail(){ var str=document.validation.email.value var filter=/^(+(?:\.+)*)@((?:+\.)*\w{0,66})\.({2,6}(?:\.{2})?)$/i if (filter.test(str)) testresults=true else{
0
9617
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9454
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10257
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...
0
10099
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10037
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
9904
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...
0
6710
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
5482
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3609
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.