Generating Random Order Number

G

Guest

I need to create a random automatic entry that consists of 2 letters and 6
numbers.

The letters and numbers need to automatically change on every new field but
the 2 letters need to prefix the numbers i.e

mk123456
ab798794
ud903398

etc....

Can anyone help as I think the only way to do this is with VB code?

Thanks
 
J

James A. Fortune

mchapman44 said:
I need to create a random automatic entry that consists of 2 letters and 6
numbers.

The letters and numbers need to automatically change on every new field but
the 2 letters need to prefix the numbers i.e

mk123456
ab798794
ud903398

etc....

Can anyone help as I think the only way to do this is with VB code?

Thanks

I did something similar to this once. See:

http://groups.google.com/group/comp.databases.ms-access/msg/74ee550e77af8209

Also, check to see if that thread has some VBA solutions. Entire thread:

http://groups.google.com/group/comp.databases.ms-access/browse_frm/thread/b2ce2aecb417e60a

James A. Fortune
(e-mail address removed)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top