PC Review


Reply
Thread Tools Rate Thread

Adding automated content to existing fields

 
 
Orlan
Guest
Posts: n/a
 
      14th Jan 2010
We have a database for our recieving department. For each package recieved, a
lot number is assigned and typed in. Now we are looking to automate the lot
number, having an automatic lot number generated and added when a package is
recieved. I can generate the automatic number, but is there any way to do
this and use the existing field? I don't want to disturbe the previous data
for tracking purposes. If I can't figure this out, I will need to add a new
field and searches become more complicated. Any suggestions?
 
Reply With Quote
 
 
 
 
Keith Wilby
Guest
Posts: n/a
 
      14th Jan 2010
"Orlan" <(E-Mail Removed)> wrote in message
news:674124D2-BE57-42A9-879E-(E-Mail Removed)...
> We have a database for our recieving department. For each package
> recieved, a
> lot number is assigned and typed in. Now we are looking to automate the
> lot
> number, having an automatic lot number generated and added when a package
> is
> recieved. I can generate the automatic number, but is there any way to do
> this and use the existing field? I don't want to disturbe the previous
> data
> for tracking purposes. If I can't figure this out, I will need to add a
> new
> field and searches become more complicated. Any suggestions?


Yes you can use the existing field assuming it contains just numbers. Try
making this your text box's default value (untested):

DMax(Nz([MyField],[tblMyTable],0))+1

Changing the names accordingly to suit.

Keith.
www.keithwilby.co.uk

 
Reply With Quote
 
Jeff Boyce
Guest
Posts: n/a
 
      16th Jan 2010
I'm not sure I understand ... you have an existing field that holds your
assigned number. What type of field is that?

Regards

Jeff Boyce
Microsoft Access MVP

--
Disclaimer: This author may have received products and services mentioned
in this post. Mention and/or description of a product or service herein
does not constitute endorsement thereof.

Any code or pseudocode included in this post is offered "as is", with no
guarantee as to suitability.

You can thank the FTC of the USA for making this disclaimer
possible/necessary.

"Orlan" <(E-Mail Removed)> wrote in message
news:674124D2-BE57-42A9-879E-(E-Mail Removed)...
> We have a database for our recieving department. For each package
> recieved, a
> lot number is assigned and typed in. Now we are looking to automate the
> lot
> number, having an automatic lot number generated and added when a package
> is
> recieved. I can generate the automatic number, but is there any way to do
> this and use the existing field? I don't want to disturbe the previous
> data
> for tracking purposes. If I can't figure this out, I will need to add a
> new
> field and searches become more complicated. Any suggestions?



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding existing fields MsDYJ Microsoft Access Forms 1 12th Aug 2009 10:59 PM
adding fields to an existing form KevinS Microsoft Access Forms 1 8th May 2009 10:18 PM
adding data to an existing column with content steve in bristol Microsoft Excel Misc 3 6th May 2008 12:24 AM
Adding New Fields to an existing form Sarah Hill Microsoft Access Database Table Design 3 28th May 2004 04:54 PM
Adding fields to an existing subform =?Utf-8?B?SmFkZQ==?= Microsoft Access Form Coding 5 2nd Feb 2004 03:35 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:18 AM.