Re: append contents of field to another field



"RipperT @comcast.net>" <rippertsmith<nospam> wrote in message
news:uj$uikDSFHA.2788@xxxxxxxxxxxxxxxxxxxx
> Hello,
>
> I would like to (using code) have text data from a table field be
> automatically appended to the end of text data entered in another
> field. Specifically,
>
> Field 1: "123456"
> Field 2: "ww.somewebaddress.net/subfolder/" (default value)
>
> I need the result of field 2 to look like this:
> "ww.somewebaddress.net/subfolder/123456"
>
> without having to type the contents of field 1 twice. How would I do
> this?
>
> Many thanx,
>
> Rip

It's easy enough to do, but why do it? Are you planning to remove Field
1 from your table? If both Field 1 and Field 2 are going to exist in
your table, then why not just use a calculated field in query to
concatenate them whenever necessary? Like this:

SELECT [Field2] & [Field 1] AS WebPage FROM MyTable;

--
Dirk Goldgar, MS Access MVP
www.datagnostics.com

(please reply to the newsgroup)


.



Relevant Pages

  • Re: I need help with a VBA search code
    ... Dirk Goldgar, MS Access MVP ... (please reply to the newsgroup) ... Prev by Date: ...
    (microsoft.public.access.modulesdaovba)
  • Re: Insert New Record
    ... Dirk Goldgar, MS Access MVP ... (please reply to the newsgroup) ... Prev by Date: ...
    (microsoft.public.access.forms)
  • Re: OnExitRecord problem
    ... Dirk Goldgar, MS Access MVP ... (please reply to the newsgroup) ... Prev by Date: ...
    (microsoft.public.access.formscoding)
  • Re: users retrieval
    ... Dirk Goldgar, MS Access MVP ... (please reply to the newsgroup) ... Prev by Date: ...
    (microsoft.public.access.formscoding)
  • Re: How to get Autonumber key thru code
    ... Dirk Goldgar, MS Access MVP ... (please reply to the newsgroup) ... Prev by Date: ...
    (microsoft.public.access.modulesdaovba)