can't print record I want printed
Hi all---
D4
Paradox 7
I am trying to print one record at a time using QReport, it's built-in
Printer Setup and Print buttons.
My table record is using Autoincrement as it's primary key. One
drawback to using Autoincrement is that when you delete a record from
the table, the number/index/primary key is also deleted and not
replaced. So when you have 10 records, and you delete item number 8,
you'll have 9 records, and the record numbers will be 1, 2, 3, 4, 5, 6,
7, 9, 10.
WHen you add a new record, it will be item number 11. However, now your
total record is 10.
So my problem is when I want to print item number 9, I can't tell lthe
printer setup to print 9 to 9, I have to say record 8 to 8, because now,
9 is considered record number 8. I hope this is not confusing.
So how can I make it easier for the users who aren't aware of this? I
have about 600 records and have deleted some during the making of the
application. So my primary key is at 638, although I only have 622
records. Of course, when I want to printe item 638 (last record), I
have to tell the printer setup to print record 622.
Any input on this is much appreciated. I know you all know how the
autoinc works but I just needed to get if off my system :)
What I was trying to do as an alternative was to scroll to the record I
want to print, hit the qreport, then print, but record number 1 is
always the one that's being printed.
Thanks in advance,
maria