PC Review


Reply
Thread Tools Rate Thread

Default value problem

 
 
אלי
Guest
Posts: n/a
 
      5th Jan 2010
Hi all!

I am sorry if my question is stupid but I am new to access.

I am using access database (.mdb) that is controlled from excel. I wanted to
ask if it is possible that for any new record, the default value (string) of
one field will be the value of another field with a constant prefix?
If it is possible I will be glad to now how to do it.

Thanks in advance

Eli

 
Reply With Quote
 
 
 
 
Arvin Meyer [MVP]
Guest
Posts: n/a
 
      5th Jan 2010
It would be possible from an Access form, or from an Access query but not in
a table. According to database normalization rules, the values from 1 field
should not be a part of any other field. This rule is occasionally broken in
databases that rely on a composite key field, but it is not recommended.
--
Arvin Meyer, MCP, MVP
http://www.datastrat.com
http://www.mvps.org/access
http://www.accessmvp.com


"???" <@discussions.microsoft.com> wrote in message
news:E69FEE01-7964-479E-98A4-(E-Mail Removed)...
> Hi all!
>
> I am sorry if my question is stupid but I am new to access.
>
> I am using access database (.mdb) that is controlled from excel. I wanted
> to
> ask if it is possible that for any new record, the default value (string)
> of
> one field will be the value of another field with a constant prefix?
> If it is possible I will be glad to now how to do it.
>
> Thanks in advance
>
> Eli
>



 
Reply With Quote
 
golfinray
Guest
Posts: n/a
 
      5th Jan 2010
I am not quite sure what you are asking but I will take a shot. If you are
talking about having one field, like abc, bcd, cde can be used as the source
for another field with a constant prefix, yes you can do that with a query
and then update the table with an update query. For example, in your query
you would use an IIF statement or Replace statement to add the prefix and
then use an update query to add that to a filed in the table.
--
Milton Purdy
ACCESS
State of Arkansas


"אלי" wrote:

> Hi all!
>
> I am sorry if my question is stupid but I am new to access.
>
> I am using access database (.mdb) that is controlled from excel. I wanted to
> ask if it is possible that for any new record, the default value (string) of
> one field will be the value of another field with a constant prefix?
> If it is possible I will be glad to now how to do it.
>
> Thanks in advance
>
> Eli
>

 
Reply With Quote
 
Dorian
Guest
Posts: n/a
 
      5th Jan 2010
see answer in other forum.
-- Dorian
"Give someone a fish and they eat for a day; teach someone to fish and they
eat for a lifetime".


"אלי" wrote:

> Hi all!
>
> I am sorry if my question is stupid but I am new to access.
>
> I am using access database (.mdb) that is controlled from excel. I wanted to
> ask if it is possible that for any new record, the default value (string) of
> one field will be the value of another field with a constant prefix?
> If it is possible I will be glad to now how to do it.
>
> Thanks in advance
>
> Eli
>

 
Reply With Quote
 
theDBguy
Guest
Posts: n/a
 
      5th Jan 2010
Hi,

You may have to explain it a bit more, but if I understand what you're
asking, I don't think that is possible at the table level but very possible
at the form level.

Hope that helps...


"אלי" wrote:

> Hi all!
>
> I am sorry if my question is stupid but I am new to access.
>
> I am using access database (.mdb) that is controlled from excel. I wanted to
> ask if it is possible that for any new record, the default value (string) of
> one field will be the value of another field with a constant prefix?
> If it is possible I will be glad to now how to do it.
>
> Thanks in advance
>
> Eli
>

 
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
Default Value problem Mixer1 Microsoft Access Forms 5 23rd Feb 2008 03:32 PM
Default value problem Tony Williams Microsoft Access Forms 2 24th May 2007 05:03 PM
Default Value Problem jwr Microsoft Access 4 26th Mar 2006 02:48 AM
Default problem inez @mindspring Windows XP Performance 2 11th Jun 2004 03:25 AM
Default Problem BenHur Microsoft Outlook 1 30th Jul 2003 09:31 AM


Features
 

Advertising
 

Newsgroups
 


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