473,505 Members | 16,940 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 1904

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********@hotmail.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********@hotmail.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, StatusDescription 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********@hotmail.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, StatusDescription 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
5490
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...
4
3115
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...
15
4643
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...
8
12009
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...
8
12066
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...
6
5479
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...
4
2891
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:...
5
1486
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...
0
1944
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...
0
7103
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
7370
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...
1
7021
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
7478
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...
1
5035
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...
0
4701
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...
0
3188
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...
0
3177
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1532
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 ...

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.