borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (Avg Function)Next Topic (Crystal Reports...Please POST i need the answer sooner than next week...please please...) New Topic New Poll Post Reply
AndreaVB Forum : Reporting tools : AutoNumber In DataReport???
Poster Message
luckyboy
Level: VB Lord

Registered: 05-05-2005
Posts: 160

icon AutoNumber In DataReport???

Hi everyone. My Table it don have Field datatype autonumber. But in my Datareport i need it. For EX:
My Table Field in Database:
StudentID, StudentName, StudentSex...

My DataReport I need it to show like this
ID  StudentID   StudentName     StudentSex
1     S0001         Dara                   M
2     S0002         DaDa                  M
3     S0003         DaD                    F
4     S0004         DiDo                   F
5     S0005         DoDi                   M

I need your help. Can you help me out with this problem?  

____________________________
Please help out.

16-08-2005 at 02:17 AM
View Profile Send Email to User Show All Posts | Quote Reply
TJ_01
Level: VB Lord


Registered: 24-08-2005
Posts: 320
icon Re: AutoNumber In DataReport???

JUst a suggestion buddy. To become easier for you, why dont you add autonumber field in your database? Anyway, there are many ways on how to it. YOu can also get the record number of each record to serve as your ID in the dataREport.

rs.AbsolutePosistion




____________________________
Im JAMES  

31-08-2005 at 01:40 AM
View Profile Send Email to User Show All Posts | Quote Reply
TJ_01
Level: VB Lord


Registered: 24-08-2005
Posts: 320
icon Re: AutoNumber In DataReport???

JUst a suggestion buddy. To become easier for you, why dont you add autonumber field in your database? Anyway, there are many ways on how to it. YOu can also get the record number of each record to serve as your ID in the dataREport.

rs.AbsolutePosistion




____________________________
Im JAMES  

31-08-2005 at 01:41 AM
View Profile Send Email to User Show All Posts | Quote Reply
ben.ooi
Level: Trainee

Registered: 01-09-2005
Posts: 3
icon Re: AutoNumber In DataReport???

quote:
TJ_01 wrote:
JUst a suggestion buddy. To become easier for you, why dont you add autonumber field in your database? Anyway, there are many ways on how to it. YOu can also get the record number of each record to serve as your ID in the dataREport.

rs.AbsolutePosistion






Hi;
The easy way to get the auto number is to add the <Total Running  fields>.
By add a database fields in the section report details, then right click on the fields added, you will see the <insert> in list, then select the Total running number. A form will prompt out, in the type of summary fields,  select <count> then press ok.
08-09-2005 at 10:08 AM
View Profile Send Email to User Show All Posts | Quote Reply
luckyboy
Level: VB Lord

Registered: 05-05-2005
Posts: 160
icon Re: AutoNumber In DataReport???

TJ_01, can you tell me clearer about this? or tell me other way that possible please?
Looking forward to hearing from you.

____________________________
Please help out.

15-09-2005 at 06:08 AM
View Profile Send Email to User Show All Posts | Quote Reply
TJ_01
Level: VB Lord


Registered: 24-08-2005
Posts: 320
icon Re: AutoNumber In DataReport???

I just want to ask, what is the goal of autonumber or its functions in the datareport? If it is only for reference or unique id then i suggestion that you get the
Absolute.Posistion
of each record and display it in the report.

____________________________
Im JAMES  

16-09-2005 at 01:51 AM
View Profile Send Email to User Show All Posts | Quote Reply
luckyboy
Level: VB Lord

Registered: 05-05-2005
Posts: 160
icon Re: AutoNumber In DataReport???

I need auto number in data report like i say before.  
ID
1
2
3
4
5
this is display in data report. any more idea please?

[Edited by luckyboy on 16-09-2005 at 04:46 PM GMT]

____________________________
Please help out.

16-09-2005 at 09:43 AM
View Profile Send Email to User Show All Posts | Quote Reply
TJ_01
Level: VB Lord


Registered: 24-08-2005
Posts: 320
icon Re: AutoNumber In DataReport???

Well in my own idea, you can do looping that you assign a variable which increment everytime the record counts.

____________________________
Im JAMES  

19-09-2005 at 01:15 AM
View Profile Send Email to User Show All Posts | Quote Reply
fuji_su
Level: Professor


Registered: 26-08-2005
Posts: 73
icon Re: AutoNumber In DataReport???

I have a same problem. Ithink luckyboy just want to put an increment numbers only(Is that what U mean lucky boy?)

I also do not know how to put an increment number as TJ said do a record count ia a good idea but how to do that. Where to put the code?

____________________________
-fuji-

06-10-2005 at 01:21 AM
View Profile Send Email to User Show All Posts | Quote Reply
luckyboy
Level: VB Lord

Registered: 05-05-2005
Posts: 160
icon Re: AutoNumber In DataReport???

fuji_su, u are right. anyone help please not show increment number(autonumber)in form but in data report please please.

____________________________
Please help out.

11-10-2005 at 08:09 AM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : Reporting tools : AutoNumber In DataReport???
Previous Topic (Avg Function)Next Topic (Crystal Reports...Please POST i need the answer sooner than next week...please please...) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder