PC Review


Reply
Thread Tools Rate Thread

Auto fill in same record

 
 
=?Utf-8?B?VmFs?=
Guest
Posts: n/a
 
      10th Sep 2006
I have a database, Acess 2000, with a table that contains a field for a
mailing address and a field for a physical address. Once I have typed in the
mailing address, I would like Access to automatically fill in the physical
address field so I do not have to type it again. I would also like to be
able to overwrite the physical address if it is different than the mailing
address.

Any help would be appreciated. Thank you.
--
Val
 
Reply With Quote
 
 
 
 
Joseph Meehan
Guest
Posts: n/a
 
      10th Sep 2006
Val wrote:
> I have a database, Acess 2000, with a table that contains a field for
> a mailing address and a field for a physical address. Once I have
> typed in the mailing address, I would like Access to automatically
> fill in the physical address field so I do not have to type it again.
> I would also like to be able to overwrite the physical address if it
> is different than the mailing address.
>
> Any help would be appreciated. Thank you.


Sure. You will need one form for entering new data and one for editing
data. make sure you restrict each from for data entry only or No data
entry.

Then on an appropriate event like exiting the last field of the mailing
address fields have it copy the data to the physical address field and
refresh the data displayed.

--
Joseph Meehan

Dia duit


 
Reply With Quote
 
=?Utf-8?B?VmFs?=
Guest
Posts: n/a
 
      10th Sep 2006
Thank you. As an Access "newbie", could you explain how to "have it copy the
data to the physical address field and refresh the data displayed."

--
Val


"Joseph Meehan" wrote:

> Val wrote:
> > I have a database, Acess 2000, with a table that contains a field for
> > a mailing address and a field for a physical address. Once I have
> > typed in the mailing address, I would like Access to automatically
> > fill in the physical address field so I do not have to type it again.
> > I would also like to be able to overwrite the physical address if it
> > is different than the mailing address.
> >
> > Any help would be appreciated. Thank you.

>
> Sure. You will need one form for entering new data and one for editing
> data. make sure you restrict each from for data entry only or No data
> entry.
>
> Then on an appropriate event like exiting the last field of the mailing
> address fields have it copy the data to the physical address field and
> refresh the data displayed.
>
> --
> Joseph Meehan
>
> Dia duit
>
>
>

 
Reply With Quote
 
Steve Schapel
Guest
Posts: n/a
 
      10th Sep 2006
Val,

On your form, on the After Update event of the Mailing Address textbox,
put code that looks like this (substituting your own control names, of
course)...

If IsNull(Me.Physical_Address) Then
Me.Physical_Address = Me.Mailing_Address
End If

--
Steve Schapel, Microsoft Access MVP

Val wrote:
> I have a database, Acess 2000, with a table that contains a field for a
> mailing address and a field for a physical address. Once I have typed in the
> mailing address, I would like Access to automatically fill in the physical
> address field so I do not have to type it again. I would also like to be
> able to overwrite the physical address if it is different than the mailing
> address.
>
> Any help would be appreciated. Thank you.

 
Reply With Quote
 
=?Utf-8?B?VmFs?=
Guest
Posts: n/a
 
      10th Sep 2006
Thank you, Steve. I will give that a try. As this is an at-work database, I
will do it on Monday when I go back to work.
--
Val


"Steve Schapel" wrote:

> Val,
>
> On your form, on the After Update event of the Mailing Address textbox,
> put code that looks like this (substituting your own control names, of
> course)...
>
> If IsNull(Me.Physical_Address) Then
> Me.Physical_Address = Me.Mailing_Address
> End If
>
> --
> Steve Schapel, Microsoft Access MVP
>
> Val wrote:
> > I have a database, Acess 2000, with a table that contains a field for a
> > mailing address and a field for a physical address. Once I have typed in the
> > mailing address, I would like Access to automatically fill in the physical
> > address field so I do not have to type it again. I would also like to be
> > able to overwrite the physical address if it is different than the mailing
> > address.
> >
> > Any help would be appreciated. Thank you.

>

 
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
Auto fill record with macro jrrock26 Microsoft Access Macros 1 9th Jun 2010 11:15 PM
Auto fill existing record, allow new entry Jason Microsoft Access Forms 6 18th Dec 2008 10:29 AM
RE: Auto fill with value form previous record =?Utf-8?B?TWFyeQ==?= Microsoft Access Forms 5 17th Aug 2007 02:03 AM
Record auto fill cneeley Microsoft Access Macros 1 30th Jan 2004 04:08 AM
Record auto fill form cneeley Microsoft Access Forms 1 29th Jan 2004 06:12 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:03 PM.