4 Replies - 1009 Views - Last Post: 07 November 2012 - 09:03 PM Rate Topic: -----

#1 Leonardjesse  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 5
  • Joined: 28-October 12

E-Receipt

Posted 28 October 2012 - 05:50 PM

I'm writing a program that get's the following from user: name, item bought, and quantity. After geting this data from the user, I want a form to be generated bearing the info entered into the data base. Such that when the form is printed via the printer, it will have a unique auto generated number on it. Example if I print 1 form, let it 00001 be auto generated on the form. Then if I come after sometime and print another form, let it auto generate 00002 in that sequence. I've done the other parts of the work, but my problem is with the AUTO GENERATION. PLEASE HELP ME OUT

Is This A Good Question/Topic? 0
  • +

Replies To: E-Receipt

#2 maj3091  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 299
  • View blog
  • Posts: 1,768
  • Joined: 26-March 09

Re: E-Receipt

Posted 29 October 2012 - 01:37 AM

You could use an AutoNumber field in your database and format how you want it to appear.
Was This Post Helpful? 0
  • +
  • -

#3 BobRodes  Icon User is offline

  • Your Friendly Local Curmudgeon
  • member icon

Reputation: 572
  • View blog
  • Posts: 2,985
  • Joined: 19-May 09

Re: E-Receipt

Posted 03 November 2012 - 09:48 PM

View Postmaj3091, on 29 October 2012 - 03:37 AM, said:

You could use an AutoNumber field in your database and format how you want it to appear.

Assuming you're using Access, which you haven't said. If you're using SQL Server, it would be an "Identity column".
Was This Post Helpful? 0
  • +
  • -

#4 Leonardjesse  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 5
  • Joined: 28-October 12

Re: E-Receipt

Posted 04 November 2012 - 01:21 PM

I am using Access
Was This Post Helpful? 0
  • +
  • -

#5 BobRodes  Icon User is offline

  • Your Friendly Local Curmudgeon
  • member icon

Reputation: 572
  • View blog
  • Posts: 2,985
  • Joined: 19-May 09

Re: E-Receipt

Posted 07 November 2012 - 09:03 PM

Then follow maj's advice.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1