A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

count on form list



 
 
Thread Tools Display Modes
  #1  
Old March 9th, 2010, 11:51 PM posted to microsoft.public.access.forms
Highlight between 3 fields[_2_]
external usenet poster
 
Posts: 26
Default count on form list

Hello

Hiw can I make count number to calculate how many post raw it is be on the
form list?
So the resoult sould looks:
No
1
2
3
4
5
6
7
8

Thanks

----------------
This post is a suggestion for Microsoft, and Microsoft responds to the
suggestions with the most votes. To vote for this suggestion, click the "I
Agree" button in the message pane. If you do not see the button, follow this
link to open the suggestion in the Microsoft Web-based Newsreader and then
click "I Agree" in the message pane.

http://www.microsoft.com/office/comm...c.access.forms
  #2  
Old March 10th, 2010, 07:08 PM posted to microsoft.public.access.forms
Maurice
external usenet poster
 
Posts: 1,585
Default count on form list

Take a look here my guess is that this is what you are looking for:

http://www.allenbrowne.com/casu-10.html
--
Maurice Ausum


"Highlight between 3 fields" wrote:

Hello

Hiw can I make count number to calculate how many post raw it is be on the
form list?
So the resoult sould looks:
No
1
2
3
4
5
6
7
8

Thanks

----------------
This post is a suggestion for Microsoft, and Microsoft responds to the
suggestions with the most votes. To vote for this suggestion, click the "I
Agree" button in the message pane. If you do not see the button, follow this
link to open the suggestion in the Microsoft Web-based Newsreader and then
click "I Agree" in the message pane.

http://www.microsoft.com/office/comm...c.access.forms

  #3  
Old March 11th, 2010, 02:05 PM posted to microsoft.public.access.forms
Highlight between 3 fields[_2_]
external usenet poster
 
Posts: 26
Default count on form list

Hello

Thank you for your replay, but this code not give counter result that show
1
2
3
4
so on

I use Access 2007
Best regards
  #4  
Old March 17th, 2010, 03:01 PM posted to microsoft.public.access.forms
Highlight between 3 fields[_2_]
external usenet poster
 
Posts: 26
Default count on form list

Hi again

Any one have idea to get count nomber that will work on Access 2007

Thanks
  #5  
Old March 17th, 2010, 08:00 PM posted to microsoft.public.access.forms
John W. Vinson
external usenet poster
 
Posts: 18,261
Default count on form list

On Wed, 17 Mar 2010 08:01:01 -0700, Highlight between 3 fields
wrote:

Hi again

Any one have idea to get count nomber that will work on Access 2007

Thanks


Please explain the context; what are you counting, where, and what problem are
you having?

YOU can see your computer. We cannot!
--

John W. Vinson [MVP]
  #6  
Old March 18th, 2010, 07:43 AM posted to microsoft.public.access.forms
Highlight between 3 fields[_2_]
external usenet poster
 
Posts: 26
Default count on form list

Thank you for your comment

I have Form with list post and filter for searching by textbox.
The scour for this form is query.
I want make count number to know how many raw are on this post list and show
with every post a number (witout number, I can't know how many raw of post
on the list)
I create a textbox and insert on it this code:

=oppp(IIF(true;1;0))

And create a modul that looks as this:

Option Compare Database
Dim aaa As Integer

Function oppp(sss) As Integer

If sss = 1 Then
aaa = aaa + 1
ElseIf sss = 0 Then
aaa = 0
End If
oppp = aaa

End Function


The problem is number work good then it starts just step increase when I
move the list up & down. Even if I close the form and restart it or update
the form, just larger number.

Is there better idea to get the counter on form on MS Access 2007 ?
So every time I make search by filter, so it show the count number like

1
2
3
4

so on with every search it will looks like it. The number have nothing with
post, just to show how many raw on the list.

Here is example of what I mean that have above code:
http://home.swipnet.se/georgedesign/db6.mdb


Thanks a lot
  #7  
Old March 21st, 2010, 10:41 PM posted to microsoft.public.access.forms
Highlight between 3 fields[_2_]
external usenet poster
 
Posts: 26
Default count on form list

Hello Mr John W.

I found your replay to other people that have near to my question.
I test that you wrote and it work.

Thank you very much.
  #8  
Old March 22nd, 2010, 06:55 AM posted to microsoft.public.access.forms
Highlight between 3 fields[_2_]
external usenet poster
 
Posts: 26
Default count on form list

Hi Mr John W.

Your code make a sort by [ID] then it work ok, but I have the sort by [Item]

=DCount("*", "queryname", "[ID] = " & [ID])

So now it looks the number as:
5
100
14
21
25
50
So on.

Can you please make it to sort by [Item] name?

Thanks a lot
  #9  
Old March 22nd, 2010, 03:55 PM posted to microsoft.public.access.forms
John W. Vinson
external usenet poster
 
Posts: 18,261
Default count on form list

On Sun, 21 Mar 2010 23:55:01 -0700, Highlight between 3 fields
wrote:

Hi Mr John W.

Your code make a sort by [ID] then it work ok, but I have the sort by [Item]

=DCount("*", "queryname", "[ID] = " & [ID])

So now it looks the number as:
5
100
14
21
25
50
So on.

Can you please make it to sort by [Item] name?

Thanks a lot


I'm sorry, but I have no idea what you're talking about. You didn't ask for a
sort, and I didn't suggest anything to sort.

Please post some more context. The DCount() function counts records. It
doesn't do any sorting and it's not intended to do any sorting! What's the
context?

--

John W. Vinson [MVP]
  #10  
Old March 23rd, 2010, 12:18 AM posted to microsoft.public.access.forms
Highlight between 3 fields[_2_]
external usenet poster
 
Posts: 26
Default count on form list

Hello Mr Johan

Thank you for your replay.
I send you a sample to show you that the number is not correct growing, so
how can I make it correct.
And I still have sort by Item as(a, b, c, d .....
And DIDIDI have not sort and contain code Dcount()

Here is a picture to see:
http://home.swipnet.se/georgedesign/count123456.jpg

Here is MS access sample 2007 sd same of pictu
http://home.swipnet.se/georgedesign/autocount.accdb

Thank you very for your time.
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 06:07 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.