hi guys,
I got another query here. I am using two tables for my invoice
1......... Inv_total
this table has details of transection ... here tran_id is PK
2.........Inv Details
This table has details of items purchased from vendor. I don't have any PK here
Everything is working fine here
I print invoice after i save transection in database. Then i extract data from database and print the innvoice. It works fines all the way it should.
I have one issue.
When i print invoice, item are not in the same order as they were on interface. I want to see them insame order they appear in list in the interface. What is right thing to do now?
should i print invice before I save it?
or
should I add a serial no in the table inv_details?
if I go with this one. Can long interger support this? should I make it auto increase? should I set it in serial no and restart it for every new transection?
What is right approach?
P.S. I am use Access2003 as dB and VB6 at front.
Kind Regards
I got another query here. I am using two tables for my invoice
1......... Inv_total
this table has details of transection ... here tran_id is PK
2.........Inv Details
This table has details of items purchased from vendor. I don't have any PK here
Everything is working fine here
I print invoice after i save transection in database. Then i extract data from database and print the innvoice. It works fines all the way it should.
I have one issue.
When i print invoice, item are not in the same order as they were on interface. I want to see them insame order they appear in list in the interface. What is right thing to do now?
should i print invice before I save it?
or
should I add a serial no in the table inv_details?
if I go with this one. Can long interger support this? should I make it auto increase? should I set it in serial no and restart it for every new transection?
What is right approach?
P.S. I am use Access2003 as dB and VB6 at front.
Kind Regards
Comment