473,385 Members | 1,875 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

How To Generate Serial No.In Data Report in VB6.0?

12
Hi To All,

How To Generate Serial No.In Data Report in VB6.0?

Thanx In Advance.............................
Feb 16 '08 #1
7 5424
lotus18
866 512MB
Hi To All,

How To Generate Serial No.In Data Report in VB6.0?

Thanx In Advance.............................
Why do you mean by this? Does your data report source connected to a database? If yes, just add the PK or any unique identification to the data report. This will serve as your Serial No if you want.

Rey Sean
Feb 16 '08 #2
hnpatel
12
Why do you mean by this? Does your data report source connected to a database? If yes, just add the PK or any unique identification to the data report. This will serve as your Serial No if you want.

Rey Sean
yes my datareport source connected to a database.But what is PK? & how to add PK?
Feb 18 '08 #3
debasisdas
8,127 Expert 4TB
yes my datareport source connected to a database.But what is PK? & how to add PK?
Use Primary Key for unique iddentification and can make that field an autonuumber field to get serial number..
Feb 18 '08 #4
9815402440
180 100+
hi
what is your database? i.e. access oracle or sql etc.
Feb 18 '08 #5
dnb
34
hi
what is your database? i.e. access oracle or sql etc.

my database is access.
but i con't want to sr. no. in datatable.
i want to add this field external from datareport.
plz give solution of this problem.
thanx in advance...........
Feb 19 '08 #6
9815402440
180 100+
hi
the only way out is to make recordset at run time add serial no to it and then bound it to the data report

you can add new field to the recordset as follows
shape {select * from table1} append new adbstr srNo
dim i as integer
for i = 1 to rst.recordcount
rst.fields("srNo").value = i
next

you can bind datareport as follows

with dataReport1
.datamember = ""
set .DataSource = rst
.sections("Detail").controls("fld1").datamemeber = ""
.sections("Detail").controls("fld1").datafield = "Fld1"
.refresh
end with


hope this will help you
regards
manpreet singh dhillon hoshiarpur
Feb 19 '08 #7
dnb
34
Hi
Plz Help me where to put this code and how to write a query which u have given?

"shape {select * from table1} append new adbstr srNo" in this query there is syntex error generated.

Plz give me proper step.
Feb 21 '08 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

10
by: Conrad | last post by:
Greetings, I have a need to print from Win98SE to a little serial label printer provided by United Parcel, so based on Mark Hammond's recommendation in 'Programming on Win32' I decided to try...
15
by: tom | last post by:
Hi, How do I get the serial number of the harddisk in .NET? I want this to be the same number even if the user has reformatted, so I do not want the volume serial number. Thanx, t
29
by: Lauren Wilson | last post by:
Does anyone know how the following info is extracted from the user's computer by a Front Page form? HTTP User Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107...
7
by: Michael Chong | last post by:
I wrote a program that communicate with SerialComm. In every 300 milliseconds, my program continuously send & receive data via the serial port once the program starts. My program is once in a...
5
by: Hunter Hillegas | last post by:
I have a CSV file with 400,000 lines of email mailing list information that I need to migrate to a new PostgreSQL database. Each line has all the info I need except a PK (I usually use an int4...
0
by: ward | last post by:
Greetings. Ok, I admit it, I bit off a bit more than I can chew. I need to complete this "Generate Report" page for my employer and I'm a little over my head. I could use some additional...
13
by: Rob | last post by:
Hi all, I am fairly new to python, but not programming and embedded. I am having an issue which I believe is related to the hardware, triggered by the software read I am doing in pySerial. I...
6
by: cnixuser | last post by:
Hello, I have a basic application written which is designed to data over a serial cable and then receive a response back. I am not getting any triggers to my data received event. I have tried...
6
by: terry | last post by:
Hi, I am trying to send a character to '/dev/ttyS0' and expect the same character and upon receipt I want to send another character. I tired with Pyserial but in vain. Test Set up: 1. Send...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.