Submit Your Article Webforumz RegistrationAnnouncements Contact Webforumz StaffContact
Home Resources Blogs Meet the Team Contact Register
 

Go Back   WebForumz.com > Putting it Together > Databases

Reply
 
LinkBack Thread Tools
Old September 11th, 2007, 07:14 PM   #1
New Member
 

Join Date: Sep 2007
Location: Chicago
Age: 23
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 fbm2themex is on a distinguished road
Angry ACCESS HELP, trying to count groups

I am trying to count/find the page count. or more like to find how many pages(blankss) are within Y(each Y)..

example:

(Col1) (Col2) (what im trying to get in the nxt col)
1 Y 3
2
3
4 Y 1
5 Y 5
6
7
8
9
10 C 1

Can anyone help me out??
fbm2themex is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old September 12th, 2007, 12:37 AM   #2
Highly Reputable Member
 

Join Date: Apr 2007
Location: Willich, Germany
Age: 22
Posts: 592
Blog Entries: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 c010depunkk is a jewel in the rough c010depunkk is a jewel in the rough c010depunkk is a jewel in the rough c010depunkk is a jewel in the rough
Re: ACCESS HELP, trying to count groups

well, if you're using PHP you could use the explode function:
Code:
<?php
foreach($rows as $row) {
  
$parts=explode('Y',$row);
  
// now $parts[0] holds the first number
  // and $parts[1] holds the second number
  // and if $parts is empty (count($parts)==0), then there was only one number
?>
c010depunkk is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old September 12th, 2007, 07:20 AM   #3
New Member
 

Join Date: Sep 2007
Location: Chicago
Age: 23
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 fbm2themex is on a distinguished road
Re: ACCESS HELP, trying to count groups

Quote:
Originally Posted by c010depunkk View Post
well, if you're using PHP you could use the explode function:
Code:
<?php
foreach($rows as $row) {
  
$parts=explode('Y',$row);
  
// now $parts[0] holds the first number
  // and $parts[1] holds the second number
  // and if $parts is empty (count($parts)==0), then there was only one number
?>
no, im using access for this..still, this seems way simpler. thanks though, if theres no way to do it in access, il keep this in mind...
fbm2themex is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old September 12th, 2007, 08:03 AM   #4
Highly Reputable Member
 

Join Date: Apr 2007
Location: Willich, Germany
Age: 22
Posts: 592
Blog Entries: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 c010depunkk is a jewel in the rough c010depunkk is a jewel in the rough c010depunkk is a jewel in the rough c010depunkk is a jewel in the rough
Re: ACCESS HELP, trying to count groups

Access is a kind of database, not a programming language. You can't split strings in Access...
c010depunkk is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Bookmarks

Tags
count , group , page , seperator


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Groups andrew2u WebForumz Suggestions 10 July 6th, 2007 09:02 AM
ASP Multi users Access to Microsoft Access ish Classic ASP 0 April 26th, 2007 04:05 PM


Search Engine Optimization by vBSEO 3.2.0 RC8