473,382 Members | 1,717 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,382 software developers and data experts.

autogenerate nos in vb.net

hello,

i m developing a small project.
but i m having some problems in that.
plz if any one can help i will be very thankfull.

i m using access as backend.
1)i want to auto generate nos in ID....it should be autogenerate from the last no in database.

2) how to collect data between two dates.

3)calculate the total amount....income of the day from no og bill placed in that day.

plz help me.
Aug 23 '07 #1
2 1837
r035198x
13,262 8TB
hello,

i m developing a small project.
but i m having some problems in that.
plz if any one can help i will be very thankfull.

i m using access as backend.
1)i want to auto generate nos in ID....it should be autogenerate from the last no in database.

2) how to collect data between two dates.

3)calculate the total amount....income of the day from no og bill placed in that day.

plz help me.
Hi and welcome to TSDN. Hope you'll have a great time here.
I've moved this to the .NET froum
Aug 23 '07 #2
dip_developer
648 Expert 512MB
hello,

i m developing a small project.
but i m having some problems in that.
plz if any one can help i will be very thankfull.

i m using access as backend.
1)i want to auto generate nos in ID....it should be autogenerate from the last no in database.

2) how to collect data between two dates.

3)calculate the total amount....income of the day from no og bill placed in that day.

plz help me.
1. There is a AutoNumber DataType in Access......use it for a autonumber field.....The number will increase as the data will be inserted......

2.You have to write sql query like following to collect data between two dates......
SELECT trans_id,trans_date,bill_no FROM tblTransaction Where
trans_date BETWEEN #05/05/2005# AND #05/05/2007#

3.For total amount you have to again write the proper query like....

SELECT SUM(bill_amount) FROM myTable WHERE bill_date=DATE()

the DATE() function returns the current date in ACCESS
Aug 23 '07 #3

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

Similar topics

2
by: m_evergreen | last post by:
I would like the numbers 000001 to 999999 to autogenerate in a new database. I will be transfering information from another database and in that database the numbers 000001 to 010000 are already...
0
by: Jason Coyne Gaijin42 | last post by:
I have seen several people looking for a way to access the Columns collection when using the AutoGenerate = true option. Some people have gotten so far as to find the private autoGenColumnsArray...
2
by: Jason Coyne Gaijin42 | last post by:
I have seen several people looking for a way to access the Columns collection when using the AutoGenerate = true option. Some people have gotten so far as to find the private autoGenColumnsArray...
1
by: ypul | last post by:
Hi , Getting to the point directly, my query output doesnt have fixed columns , so I choosed "autogenerate columns" datagrid. I assign this dataset to my datagrid, but now I want my data should...
2
by: serge calderara | last post by:
Dear all, I have a datagrid which bind to a dataset object Datagrid autogenerate propertie is set to True. I need to create the first column of my grid to be used as an hyperlink and sending...
2
by: hazz | last post by:
in a databound scenario I have a database column value that is of type varchar with 3 discrete text values. Binding to this table column with autogenerated columns displays the text values in a...
1
by: Dhruba Bandopadhyay | last post by:
Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKey> configuration specifies the same validationKey and validation algorithm....
0
by: yahiko | last post by:
Hello We have a large table of about 1.5M rows inserted per week. The expecte size is near 5 GBys per year. is there a form to autogenerate a partition by day in this table??? We have a date...
3
by: Brett Wickard | last post by:
Anyone know of a good way to autogenerate stored procedure parameters to put into c# code? I don't need to do it on the fly, just while coding. I've got some SPs with a lot of parameters, so it...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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:
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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?

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.