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

Home Posts Topics Members FAQ

Conditional record navigation

I amde a helpdesk database and on the calls form I put record
navigation buttons
[<<] / [<] / [>] / [>>] / [New] / [Delete] / [Exit form]

Is het possible to navigate [<] / [>] through the records with a
certain status.
Each call has a certain status with is set via an Option Group and
filled in the Status colomn in the Calls table.

Bart
Acc 2003.

Jul 2 '06 #1
4 1916

AA Arens wrote:
I amde a helpdesk database and on the calls form I put record
navigation buttons
[<<] / [<] / [>] / [>>] / [New] / [Delete] / [Exit form]

Is het possible to navigate [<] / [>] through the records with a
certain status.
Each call has a certain status with is set via an Option Group and
filled in the Status colomn in the Calls table.

Bart
Acc 2003.
yes, filter the form before navigating.

Jul 2 '06 #2
How to perform the filtering?
pi********@hotm ail.com wrote:
AA Arens wrote:
I amde a helpdesk database and on the calls form I put record
navigation buttons
[<<] / [<] / [>] / [>>] / [New] / [Delete] / [Exit form]

Is het possible to navigate [<] / [>] through the records with a
certain status.
Each call has a certain status with is set via an Option Group and
filled in the Status colomn in the Calls table.

Bart
Acc 2003.

yes, filter the form before navigating.
Jul 3 '06 #3
AA Arens wrote:
How to perform the filtering?
pi********@hotm ail.com wrote:
>>AA Arens wrote:
>>>I amde a helpdesk database and on the calls form I put record
navigation buttons
[<<] / [<] / [>] / [>>] / [New] / [Delete] / [Exit form]

Is het possible to navigate [<] / [>] through the records with a
certain status.
Each call has a certain status with is set via an Option Group and
filled in the Status colomn in the Calls table.

Bart
Acc 2003.

yes, filter the form before navigating.

You could have a combo box of status's. In the AfterUpdate event you
could have a statement like the following. I'll assume the status value
is a string, not a number

Me.Filter = "Status = '" & Me.ComboStatus & "'"
Me.FilterOn = True

It would be nice to have a status that is for displaying all Records.
Let's say you have a table of status codes. You could have a statement
similar to this
Select StatusCode, StatusDescripti on from Status Codes
UNION
Select "0", "All" From Status Codes

Then your filter statement might be something like
If Me.ComboStatus <"0" Then
Me.Filter = "Status = '" & Me.ComboStatus & "'"
Else
Me.Filter = ""
Endif
Me.FilterOn = (Me.ComboStatus = "0")
Me.FilterOn = True
Jul 3 '06 #4
Hallo Salad,

Thank you for your input. I am not professional as you are. Could you
help me further?
The situation is as follows:

I have status (in text format) like
Open
Wait
Bug
Closed

I want to record through the records with the regular record nav.
buttons, but then only brows through the records with status = Open. (I
also have the nav buttons for navigating through all records)
The status is mentioned in the column Status of the Calls table, added
via the Frame construction. (In this table there is also other info
about calls, like name customer, name officer, software version etc.)

May be you could assist me how to have it all performed. Thank you.

Bart
salad wrote:
AA Arens wrote:
How to perform the filtering?
pi********@hotm ail.com wrote:
>AA Arens wrote:

I amde a helpdesk database and on the calls form I put record
navigation buttons
[<<] / [<] / [>] / [>>] / [New] / [Delete] / [Exit form]

Is het possible to navigate [<] / [>] through the records with a
certain status.
Each call has a certain status with is set via an Option Group and
filled in the Status colomn in the Calls table.

Bart
Acc 2003.

yes, filter the form before navigating.
You could have a combo box of status's. In the AfterUpdate event you
could have a statement like the following. I'll assume the status value
is a string, not a number

Me.Filter = "Status = '" & Me.ComboStatus & "'"
Me.FilterOn = True

It would be nice to have a status that is for displaying all Records.
Let's say you have a table of status codes. You could have a statement
similar to this
Select StatusCode, StatusDescripti on from Status Codes
UNION
Select "0", "All" From Status Codes

Then your filter statement might be something like
If Me.ComboStatus <"0" Then
Me.Filter = "Status = '" & Me.ComboStatus & "'"
Else
Me.Filter = ""
Endif
Me.FilterOn = (Me.ComboStatus = "0")
Me.FilterOn = True
Jul 8 '06 #5

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

Similar topics

6
5512
by: Allan Koch | last post by:
Dear NG, I would like to format a record in a subform, dependent on a value in one field. If one field in the record I show in a subform (datasheet view) is true I like to view that particular row in green, all other rows just as they are normal. Is that possible ? regards Allan
4
3139
by: Bradley | last post by:
I have an A2000 database in which I have a continuous form with a tick box. There is also a text box with a conditional format that is based on the expression , if it's true then change the background colour. In A2000 it works great, but in A2003 the background doesn't always change and when it does it only changes when the record looses the focus. Any way around this? Is it a bug? Or have they "improved" it?
15
4661
by: Steve | last post by:
I have a form with about 25 fields. In the BeforeUpdate event of the form, I have code that sets the default value of each field to its current value. For a new record, I can put the focus in any field to start. If I edit that field and then click on the new record button in the navigation buttons, the form goes to a new record and each field has the default value of the previous record. If I put the focus in any field to start, edit that...
8
12052
by: Dimitri Furman | last post by:
Given: Access 2002/2003 A subform in datasheet or continuous view, placed on a tab page (this last may or may not matter) Conditional formatting applied to some controls on the subform - format expressions are the same for all controls Under some undetermined circumstances, when such subform is displayed, the controls on the subform start to visibly flicker, the cursor in the subform stops blinking, and CPU utilization goes to 100%....
8
12106
by: Zlatko Matiæ | last post by:
There is a form (single form) and a combobox. I want that current record of the form is adjusted according to selected value in the combobox. Cuurrent record should be the same as the value in the combobox. What is the solution? Thank you in advance.
6
5493
by: John | last post by:
Hi I need to block user from moving away from a record using any of First/Last/Prev/Next/New Record or any other way IF the record has not been saved, and displaying a message to the effect "Please finish editing". If however the user has explicitly saved the record using save from the access menu then allow to move from record. How do I achieve this via code? Thanks
4
2906
by: Jamey Shuemaker | last post by:
Howdy, Saw a couple threads from the past few years on this topic, but didn't really find any solutions. Here's one I found: http://groups.google.com/group/comp.databases.ms-access/browse_frm/thread/f6ccff0186d12566/ That fella wanted to do pretty well the same thing I did (use a command button to move between records in a form). Moving from record to record
5
1501
by: sharmilah | last post by:
Hi all I would be grateful if you could help me in the following issue. I have a form on which I can recall records and modify them. On clicking on the push button 'post', the modified record is updated and a page called guarantee.php is called. But now I want to add some validation so that if there's a mistake in an input field e.g. 'tan' the message 'invalid input' is displayed and instead of calling the program guarantee.php, I am allowed...
0
1958
by: emalcolm_FLA | last post by:
Hello and TIA for your consideration. I have created several db's for a non-profit and they want custom navigation buttons to display "You are on the first record, last record, etc". With this ng help I've created code for all except the add new record command button. If I create individual sub functions behind each form, no problem. The problem is I am trying to create a re-usable module.
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
9453
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
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
10036
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
8929
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7451
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
5354
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...
2
3607
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.