F
Fred Boer
Hi All:
I've just had one of those fun moments in working with Access - and I just
have to talk about it! And, of course, there's nobody who might be the
slightest bit interested, except in here!
Ok, many of you will know (and be sick to the teeth in hearing about) my
small library application. Well, I had someone who was trying out the
application contact me by email and ask for a change in how the application
works. I thought that this change would be a complete re-write of big chunks
of the thing and told her I couldn't do it. But then I went in and tinkered
and I found an easy solution! And, yes, you will have every right to roll
your eyes in wonder that this wouldn't have ocurred to me instantly, or that
I didn't do this from the start - but I'm tickled with it...
In the application, Patrons are assigned an ID number. In tblPatrons, this
is assigned using an Autonumber field. (I know, that's not a great thing to
do, but bear with me...). The circulation system uses this ID number to
manage tracking borrowed books. To sign out a book, you choose a patron
(either by name, or by IDnumber) from a combobox. The Patron ID number comes
into play in a couple of other forms: one in which you search for Patron
borrowing records, and, of course, in the form bound to tblPatrons toedit
Patron information.
My user said "My patrons have an existing ID number - can't I use that
number instead?". My PatronID number is autonumber; her ID numbers were
alphanumeric. So, I thought, "no way!". That will involve oodles of code
rewriting, and form re-editing. But it didn't! So...... how did I manage
this change? Well... can you guess?
P.S. (I *think* I've given enough info..... )
I've just had one of those fun moments in working with Access - and I just
have to talk about it! And, of course, there's nobody who might be the
slightest bit interested, except in here!

Ok, many of you will know (and be sick to the teeth in hearing about) my
small library application. Well, I had someone who was trying out the
application contact me by email and ask for a change in how the application
works. I thought that this change would be a complete re-write of big chunks
of the thing and told her I couldn't do it. But then I went in and tinkered
and I found an easy solution! And, yes, you will have every right to roll
your eyes in wonder that this wouldn't have ocurred to me instantly, or that
I didn't do this from the start - but I'm tickled with it...
In the application, Patrons are assigned an ID number. In tblPatrons, this
is assigned using an Autonumber field. (I know, that's not a great thing to
do, but bear with me...). The circulation system uses this ID number to
manage tracking borrowed books. To sign out a book, you choose a patron
(either by name, or by IDnumber) from a combobox. The Patron ID number comes
into play in a couple of other forms: one in which you search for Patron
borrowing records, and, of course, in the form bound to tblPatrons toedit
Patron information.
My user said "My patrons have an existing ID number - can't I use that
number instead?". My PatronID number is autonumber; her ID numbers were
alphanumeric. So, I thought, "no way!". That will involve oodles of code
rewriting, and form re-editing. But it didn't! So...... how did I manage
this change? Well... can you guess?

P.S. (I *think* I've given enough info..... )