A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Adding automated content to existing fields



 
 
Thread Tools Display Modes
  #1  
Old January 14th, 2010, 05:49 PM posted to microsoft.public.access.tablesdbdesign
Orlan
external usenet poster
 
Posts: 6
Default Adding automated content to existing fields

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?
  #2  
Old January 14th, 2010, 06:19 PM posted to microsoft.public.access.tablesdbdesign
Keith Wilby
external usenet poster
 
Posts: 812
Default Adding automated content to existing fields

"Orlan" wrote in message
...
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

  #3  
Old January 14th, 2010, 06:25 PM posted to microsoft.public.access.tablesdbdesign
Clifford Bass via AccessMonster.com
external usenet poster
 
Posts: 150
Default Adding automated content to existing fields

Hi Orlan,

How about a button on your form that calculates the lot number and
places it into the appropriate field when the button is clicked? When the
package comes in, the user pulls up the record and clicks the button. Make
sure you deal with potential duplicates if the database is used by multiple
users at the same time.

Clifford Bass

Orlan wrote:
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?


--
Message posted via http://www.accessmonster.com

  #4  
Old January 16th, 2010, 01:18 AM posted to microsoft.public.access.tablesdbdesign
Jeff Boyce
external usenet poster
 
Posts: 8,621
Default Adding automated content to existing fields

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" wrote in message
...
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?



 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 10:09 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.