WUGNET, the Windows User Group Network
Your Complete Resource Center for "The Best" in Shareware, Computing Tips and Support, Windows Industry News... and much more!
Home Forums Shareware Windows Tips Hot Offers FREE Newsletters Arcade Contact Us About Partners
Search WUGNET: RSS Feeds RSS Feeds Advertise with WUGNET    |    Shareware eBooks
HomeHome FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Default Field Value

 
   Home -> Office other -> Getting Started RSS
Next:  Creating a Default Value  
Author Message
Wookawsh

External


Since: Aug 17, 2008
Posts: 7



(Msg. 1) Posted: Sun Aug 17, 2008 7:17 pm
Post subject: Default Field Value
Archived from groups: microsoft>public>access>gettingstarted (more info?)

Sorry if this is a repeat question, but Im not sure if my original message
was posted.

Im trying to set the default value of several of my fields to the value of
one of my primary key fields.

Essentially I have a patient ID field called "STUDY ID" (primary key) that
is in One to many relationship with the STUDY ID field in other tables.
Instead of inputting this value over and over again in the various tables, I
would like to just enter it one time in a Form that I have designed. Then the
"ID" fields in the other tables will automatically get updated.

Im using the expression builder in the "Default Value" Menu, and putting in
for the other fields: =[STUDY ID] as the default value. When I try to save
this, an error message pops that that says that "STUDY ID" field cant be
found.

Any suggestions would be appreciated. I have very limited coding ability.

Thanks

--
Lukasz
Back to top
Login to vote
Wayne-I-M

External


Since: May 21, 2006
Posts: 2922



(Msg. 2) Posted: Mon Aug 18, 2008 5:39 am
Post subject: RE: Default Field Value [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

The simplest method would be to use a form with subforms - linked by your
Study ID

Copy your database and give it a try on the copy.

Create a form from the main table
Create another form from the other table

Open the main form in design view
use the toolbox to select subforms
insert a the subform (the form from the other table) and select Study ID as
the linking field

You don't need any code writting ability to do any of this - but it would
help if you has a little later on to make the databsee work better or just to
run functions that you may decide you would like

Good luck


--
Wayne
Manchester, England.



"Wookawsh" wrote:

> Sorry if this is a repeat question, but Im not sure if my original message
> was posted.
>
> Im trying to set the default value of several of my fields to the value of
> one of my primary key fields.
>
> Essentially I have a patient ID field called "STUDY ID" (primary key) that
> is in One to many relationship with the STUDY ID field in other tables.
> Instead of inputting this value over and over again in the various tables, I
> would like to just enter it one time in a Form that I have designed. Then the
> "ID" fields in the other tables will automatically get updated.
>
> Im using the expression builder in the "Default Value" Menu, and putting in
> for the other fields: =[STUDY ID] as the default value. When I try to save
> this, an error message pops that that says that "STUDY ID" field cant be
> found.
>
> Any suggestions would be appreciated. I have very limited coding ability.
>
> Thanks
>
> --
> Lukasz
Back to top
Login to vote
Wayne-I-M

External


Since: May 21, 2006
Posts: 2922



(Msg. 3) Posted: Mon Aug 18, 2008 5:42 am
Post subject: RE: Default Field Value [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

just noticed this section in your post

Im using the expression builder in the "Default Value" Menu, and putting in
for the other fields: =[STUDY ID] as the default value. When I try to save
this, an error message pops that that says that "STUDY ID" field cant be
found.


The reason it is wrong is that the main form (with study ID may not opened).
If it is you need to include the form name as well as the control name -
something like this
Forms![FormName]![ControlName]






--
Wayne
Manchester, England.



"Wookawsh" wrote:

> Sorry if this is a repeat question, but Im not sure if my original message
> was posted.
>
> Im trying to set the default value of several of my fields to the value of
> one of my primary key fields.
>
> Essentially I have a patient ID field called "STUDY ID" (primary key) that
> is in One to many relationship with the STUDY ID field in other tables.
> Instead of inputting this value over and over again in the various tables, I
> would like to just enter it one time in a Form that I have designed. Then the
> "ID" fields in the other tables will automatically get updated.
>
> Im using the expression builder in the "Default Value" Menu, and putting in
> for the other fields: =[STUDY ID] as the default value. When I try to save
> this, an error message pops that that says that "STUDY ID" field cant be
> found.
>
> Any suggestions would be appreciated. I have very limited coding ability.
>
> Thanks
>
> --
> Lukasz
Back to top
Login to vote
Wookawsh

External


Since: Aug 17, 2008
Posts: 7



(Msg. 4) Posted: Mon Aug 18, 2008 11:57 am
Post subject: RE: Default Field Value [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Wanted to thank you for your quick answers. Ill give them a try.
--
Lukasz


"Wayne-I-M" wrote:

> just noticed this section in your post
>
> Im using the expression builder in the "Default Value" Menu, and putting in
> for the other fields: =[STUDY ID] as the default value. When I try to save
> this, an error message pops that that says that "STUDY ID" field cant be
> found.
>
>
> The reason it is wrong is that the main form (with study ID may not opened).
> If it is you need to include the form name as well as the control name -
> something like this
> Forms![FormName]![ControlName]
>
>
>
>
>
>
> --
> Wayne
> Manchester, England.
>
>
>
> "Wookawsh" wrote:
>
> > Sorry if this is a repeat question, but Im not sure if my original message
> > was posted.
> >
> > Im trying to set the default value of several of my fields to the value of
> > one of my primary key fields.
> >
> > Essentially I have a patient ID field called "STUDY ID" (primary key) that
> > is in One to many relationship with the STUDY ID field in other tables.
> > Instead of inputting this value over and over again in the various tables, I
> > would like to just enter it one time in a Form that I have designed. Then the
> > "ID" fields in the other tables will automatically get updated.
> >
> > Im using the expression builder in the "Default Value" Menu, and putting in
> > for the other fields: =[STUDY ID] as the default value. When I try to save
> > this, an error message pops that that says that "STUDY ID" field cant be
> > found.
> >
> > Any suggestions would be appreciated. I have very limited coding ability.
> >
> > Thanks
> >
> > --
> > Lukasz
Back to top
Login to vote
Display posts from previous:   
       Home -> Office other -> Getting Started All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Categories:
 Windows XP
 Windows Vista
 Windows Other
 Office
  Office Other
 Security
 WinRAR
  • Home |
  • Shareware |
  • Windows Tips |
  • Hot Offers |
  • FREE Newsletters |
  • Arcade |
  • Forums |
  • eBooks |
  • About WUGNET |
  • Partners |
  • Contact

  • WUGNET Privacy Policy |
  • Link to WUGNET