Re: updating field with data from other fields
- From: "Al Camp" <anon@xxxxxxxx>
- Date: Sat, 4 Jun 2005 08:50:40 -0400
Those ""s are just nulls. They won't effect the concatenation because
they're like "blanks that take up no space". But, they are unncessary.
A common concatenation is [State] & " " & [Zip] where the " " puts a
"space" in the string.
But "" is just another way of saying "nothing".
>>> oh.ok.. the 'select' query actually did work...
Well... to make a fine point, it should have been an "Update" query.
Glad it worked out...
Al Camp
"cwr" <cwr@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:BCD5D793-CB1A-4A51-B802-029BF4F94F73@xxxxxxxxxxxxxxxx
> oh.ok.. the 'select' query actually did work with that..but when i get
> back
> into work monday will try it without those ""s..
> the syntax does look a little confusing with those in there
> i took that from some other forum...but was also not clear on why so many
> ampersands in there
>
> thanks
>
> "Al Camp" wrote:
>
>> cwr,
>> You tried...
>> > Expr1: Left([LastName],7) & "" & Left([FirstName],1) & "" & "@abcd.com"
>>
>> You shouldn't need the ""s in between each item.
>>
>> Good deal.
>> Al Camp
>>
>> "cwr" <cwr@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
>> news:62C8AF83-BA21-4C46-9221-DC4CACBAAFCA@xxxxxxxxxxxxxxxx
>> > Thanks..well, i was close...was using the following for just the query
>> > using 7 because can only use first 7 letters of last name if more
>> >
>> > Expr1: Left([LastName],7) & "" & Left([FirstName],1) & "" & "@abcd.com"
>> >
>> > but when doing update was messing up the syntax
>> >
>> > thank you, thank you
>> >
>> > "Al Camp" wrote:
>> >
>> >> Try an Update query to update your EMail field with...
>> >> = [LastName] & Left([FirstName],1) & "@abcd.com"
>> >> hth
>> >> Al Camp
>> >>
>> >> "cwr" <cwr@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
>> >> news:C545C78C-3CB4-46A9-A96F-EA189601BE9F@xxxxxxxxxxxxxxxx
>> >> >i have an access database....it has first name, last name and a field
>> >> >for
>> >> > email address of every entry, but the email address is empty...i
>> >> > need
>> >> > to
>> >> > somehow concatenate the last name, the first initial of the first
>> >> > name
>> >> > and
>> >> > a
>> >> > hard coded literal that will be the same for all....
>> >> >
>> >> > i.e. JonesG@xxxxxxxx
>> >> >
>> >> > the only thing different will be the lastname and first letter of
>> >> > first
>> >> > name
>> >> >
>> >> > what's the best way to do this...?
>> >>
>> >>
>> >>
>>
>>
>>
.
- References:
- updating field with data from other fields
- From: cwr
- Re: updating field with data from other fields
- From: Al Camp
- Re: updating field with data from other fields
- From: cwr
- Re: updating field with data from other fields
- From: Al Camp
- Re: updating field with data from other fields
- From: cwr
- updating field with data from other fields
- Prev by Date: Re: Select a parameter for my query
- Next by Date: Code Question
- Previous by thread: Re: updating field with data from other fields
- Next by thread: Loop Not Looping
- Index(es):
Relevant Pages
|