Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old January 29th, 2005, 12:48 PM
Authorized User
 
Join Date: Dec 2003
Location: Vashi, Navi Mumbai, Maharashtra, India.
Posts: 63
Thanks: 0
Thanked 0 Times in 0 Posts
Default need help

hi all
I make one Item table in that itemname, qty, amt field and generate a report from sql query like
Select * from item group by Itemname
now my problems is in a report I want serial no.to come
automatic how should I write the function or code


Mohamed Mohiddin
Officer
__________________
Mohamed Mohiddin
Officer
  #2 (permalink)  
Old January 29th, 2005, 12:53 PM
Friend of Wrox
 
Join Date: Oct 2004
Location: Clinton, UT, USA.
Posts: 564
Thanks: 0
Thanked 4 Times in 4 Posts
Default

Do you have a table with the serial number? If not, where are you looking at pulling it in from?



Mike
EchoVue.com
  #3 (permalink)  
Old January 30th, 2005, 10:09 AM
Authorized User
 
Join Date: Dec 2003
Location: Vashi, Navi Mumbai, Maharashtra, India.
Posts: 63
Thanks: 0
Thanked 0 Times in 0 Posts
Default

thanks for your replay In my table there is no serial no field, i want serial no in my report to come
automatic

Mohamed Mohiddin
Officer
  #4 (permalink)  
Old January 31st, 2005, 09:33 AM
Friend of Wrox
Points: 9,611, Level: 42
Points: 9,611, Level: 42 Points: 9,611, Level: 42 Points: 9,611, Level: 42
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2004
Location: Washington, DC, USA.
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

What do you mean that you want the serial number to come automatic? Is it stored anywhere in your database? Is the serial number from a computer? That is the only item that will report a serial number to your database that I know of.


mmcdonal
  #5 (permalink)  
Old February 2nd, 2005, 12:43 PM
Authorized User
 
Join Date: Dec 2003
Location: Vashi, Navi Mumbai, Maharashtra, India.
Posts: 63
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hi mmcdonal thanks
i mean that if i take a report from query i want the serial number from
my query recordset
my query is Select * from item group by Itemname

Mohamed Mohiddin
Officer
  #6 (permalink)  
Old February 2nd, 2005, 02:10 PM
Friend of Wrox
 
Join Date: Oct 2004
Location: Clinton, UT, USA.
Posts: 564
Thanks: 0
Thanked 4 Times in 4 Posts
Default

Are you by chance looking for a series of numbers ie. 1,2,3 like an autonumber field? If so, what you could do is to add field to your table called Serial Number and set the datatype to AutoNumber.



Mike
EchoVue.com






Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.