I did try to use the 'On Load' event. Same problem.
Now to the autonumber. You have me thinking. Like you said, I want to
create a unique number to be used for an "RMA Number". When I use an auto
number, the number will stay the same , won't it. Even if I compact. The
autonumber may skip but still remain with the same record, wont it?
Could you expand on your Dmax +1 thought?
Thanks for your time.
Hi,
no the autonumber will get messed up. A compact and repair will take out
wholes in the numbering and apply numbers which it didn't use before because
of deletions or...! This way your numbering will get totally messed up.
Instead use the dmax function to create this unique sequential value.
To generate a sequential increasing number you could use:
Nz(Dmax("YourIDField","YourTableName"),0)+1
HTH
Good luck

Signature
Oliver
Admin Specialist & Computer Science Major @ UMD - Go Terps - :)
http://www.oli-s.de
> I did try to use the 'On Load' event. Same problem.
>
[quoted text clipped - 69 lines]
> > > > > Set rst = Nothing
> > > > > Set NewConn = Nothing
NNlogistics - 09 Jan 2006 18:44 GMT
Thanks, I'll give it a try.

Signature
Thanks for any assistance
> Hi,
> no the autonumber will get messed up. A compact and repair will take out
[quoted text clipped - 81 lines]
> > > > > > Set rst = Nothing
> > > > > > Set NewConn = Nothing
NNlogistics - 09 Jan 2006 18:57 GMT
Nz(Dmax worked great. I can work with this.
I still wish I could figure oiut what was wrong with the code?
Thanks again

Signature
Thanks for any assistance
> Hi,
> no the autonumber will get messed up. A compact and repair will take out
[quoted text clipped - 81 lines]
> > > > > > Set rst = Nothing
> > > > > > Set NewConn = Nothing
Douglas J Steele - 09 Jan 2006 21:23 GMT
What is the actual SQL of qryMaxRepairRecord?
See whether
Me!txtMaxRecordIntblEMEARepairs = rst.Fields(0)
works.

Signature
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)
> Nz(Dmax worked great. I can work with this.
>
[quoted text clipped - 87 lines]
> > > > > > > Set rst = Nothing
> > > > > > > Set NewConn = Nothing