A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Field value as default on subform



 
 
Thread Tools Display Modes
  #1  
Old December 16th, 2008, 04:55 PM posted to microsoft.public.access.gettingstarted
Saylindara
external usenet poster
 
Posts: 85
Default Field value as default on subform

How can I make a value on a form the default value on a subform?
  #2  
Old December 16th, 2008, 08:31 PM posted to microsoft.public.access.gettingstarted
Jeff Boyce
external usenet poster
 
Posts: 8,621
Default Field value as default on subform

It sounds like you are saying you want to record the same value in two
different tables (i.e., one table for the main form, another table for the
subform). Why is that? Using a relational database like Access, you
shouldn't need to.

More info, please...

Regards

Jeff Boyce
Microsoft Office/Access MVP

"Saylindara" wrote in message
...
How can I make a value on a form the default value on a subform?



  #3  
Old December 17th, 2008, 06:20 AM posted to microsoft.public.access.gettingstarted
Saylindara
external usenet poster
 
Posts: 85
Default Field value as default on subform

I've got a main form Event with a field Duration showing how long the event
is predicted to last. On the subform I've got attendance details and a field
Duration to show how long the event actually lasted. Most likely it will be
the same amount of time which is why I wanted the default value from the main
form. Is there a better way?

"Jeff Boyce" wrote:

It sounds like you are saying you want to record the same value in two
different tables (i.e., one table for the main form, another table for the
subform). Why is that? Using a relational database like Access, you
shouldn't need to.

More info, please...

Regards

Jeff Boyce
Microsoft Office/Access MVP

"Saylindara" wrote in message
...
How can I make a value on a form the default value on a subform?




  #4  
Old December 17th, 2008, 05:01 PM posted to microsoft.public.access.gettingstarted
Jeff Boyce
external usenet poster
 
Posts: 8,621
Default Field value as default on subform

So it isn't the same field, it's something like [PredictedDuration] and
[ActualDuration]?

I'm still somewhat puzzled, though. If your main-form/subform construction
is standard, the subform refers to a "many" table, related to the main-form
(the "one" table). I would think that "predicted" and "actual" are both
characteristics of the event, not one related to the event and the other
related to some kind of "child" record.

What are you pointing that subform at?

Regards

Jeff Boyce
Microsoft Office/Access MVP

"Saylindara" wrote in message
...
I've got a main form Event with a field Duration showing how long the
event
is predicted to last. On the subform I've got attendance details and a
field
Duration to show how long the event actually lasted. Most likely it will
be
the same amount of time which is why I wanted the default value from the
main
form. Is there a better way?

"Jeff Boyce" wrote:

It sounds like you are saying you want to record the same value in two
different tables (i.e., one table for the main form, another table for
the
subform). Why is that? Using a relational database like Access, you
shouldn't need to.

More info, please...

Regards

Jeff Boyce
Microsoft Office/Access MVP

"Saylindara" wrote in message
...
How can I make a value on a form the default value on a subform?






  #5  
Old December 17th, 2008, 07:13 PM posted to microsoft.public.access.gettingstarted
Saylindara
external usenet poster
 
Posts: 85
Default Field value as default on subform

The same EventName can be attended by many people on different dates at
different locations.

"Jeff Boyce" wrote:

So it isn't the same field, it's something like [PredictedDuration] and
[ActualDuration]?

I'm still somewhat puzzled, though. If your main-form/subform construction
is standard, the subform refers to a "many" table, related to the main-form
(the "one" table). I would think that "predicted" and "actual" are both
characteristics of the event, not one related to the event and the other
related to some kind of "child" record.

What are you pointing that subform at?

Regards

Jeff Boyce
Microsoft Office/Access MVP

"Saylindara" wrote in message
...
I've got a main form Event with a field Duration showing how long the
event
is predicted to last. On the subform I've got attendance details and a
field
Duration to show how long the event actually lasted. Most likely it will
be
the same amount of time which is why I wanted the default value from the
main
form. Is there a better way?

"Jeff Boyce" wrote:

It sounds like you are saying you want to record the same value in two
different tables (i.e., one table for the main form, another table for
the
subform). Why is that? Using a relational database like Access, you
shouldn't need to.

More info, please...

Regards

Jeff Boyce
Microsoft Office/Access MVP

"Saylindara" wrote in message
...
How can I make a value on a form the default value on a subform?






  #6  
Old December 17th, 2008, 09:59 PM posted to microsoft.public.access.gettingstarted
Jeff Boyce
external usenet poster
 
Posts: 8,621
Default Field value as default on subform

So [ActualDuration] is a characteristic of a specific instance of [Event]?
And most of the time, it is the same as [PredictedDuration]?

If most of the time it's the same, why bother to re-record it, over and over
again? Why not record the [ActualDuration] only when it varies from the
[PredictedDuration]? That way, you could use a query to return the
[ActualDuration] (if it is entered), or the [PredictedDuration] (if it
didn't differ).

JOPO (just one person's opinion)

.... and if you absolutely must have a duplicate(d) value in each sub-form
record, take a look at using the sub-form's BeforeUpdate event to load up
that field. No need to set it as default, just write it before finalizing
the sub-form record.

Regards

Jeff Boyce
Microsoft Office/Access MVP



"Saylindara" wrote in message
...
The same EventName can be attended by many people on different dates at
different locations.

"Jeff Boyce" wrote:

So it isn't the same field, it's something like [PredictedDuration] and
[ActualDuration]?

I'm still somewhat puzzled, though. If your main-form/subform
construction
is standard, the subform refers to a "many" table, related to the
main-form
(the "one" table). I would think that "predicted" and "actual" are both
characteristics of the event, not one related to the event and the other
related to some kind of "child" record.

What are you pointing that subform at?

Regards

Jeff Boyce
Microsoft Office/Access MVP

"Saylindara" wrote in message
...
I've got a main form Event with a field Duration showing how long the
event
is predicted to last. On the subform I've got attendance details and a
field
Duration to show how long the event actually lasted. Most likely it
will
be
the same amount of time which is why I wanted the default value from
the
main
form. Is there a better way?

"Jeff Boyce" wrote:

It sounds like you are saying you want to record the same value in two
different tables (i.e., one table for the main form, another table for
the
subform). Why is that? Using a relational database like Access, you
shouldn't need to.

More info, please...

Regards

Jeff Boyce
Microsoft Office/Access MVP

"Saylindara" wrote in message
...
How can I make a value on a form the default value on a subform?








  #7  
Old December 18th, 2008, 07:09 AM posted to microsoft.public.access.gettingstarted
Saylindara
external usenet poster
 
Posts: 85
Default Field value as default on subform

Good point. I'll have to have a rethink.
I've no idea how to use BeforeUpdate should I need it. Where can I get some
help on using these sort of properties?
Thanks for your help.

"Jeff Boyce" wrote:

So [ActualDuration] is a characteristic of a specific instance of [Event]?
And most of the time, it is the same as [PredictedDuration]?

If most of the time it's the same, why bother to re-record it, over and over
again? Why not record the [ActualDuration] only when it varies from the
[PredictedDuration]? That way, you could use a query to return the
[ActualDuration] (if it is entered), or the [PredictedDuration] (if it
didn't differ).

JOPO (just one person's opinion)

.... and if you absolutely must have a duplicate(d) value in each sub-form
record, take a look at using the sub-form's BeforeUpdate event to load up
that field. No need to set it as default, just write it before finalizing
the sub-form record.

Regards

Jeff Boyce
Microsoft Office/Access MVP



"Saylindara" wrote in message
...
The same EventName can be attended by many people on different dates at
different locations.

"Jeff Boyce" wrote:

So it isn't the same field, it's something like [PredictedDuration] and
[ActualDuration]?

I'm still somewhat puzzled, though. If your main-form/subform
construction
is standard, the subform refers to a "many" table, related to the
main-form
(the "one" table). I would think that "predicted" and "actual" are both
characteristics of the event, not one related to the event and the other
related to some kind of "child" record.

What are you pointing that subform at?

Regards

Jeff Boyce
Microsoft Office/Access MVP

"Saylindara" wrote in message
...
I've got a main form Event with a field Duration showing how long the
event
is predicted to last. On the subform I've got attendance details and a
field
Duration to show how long the event actually lasted. Most likely it
will
be
the same amount of time which is why I wanted the default value from
the
main
form. Is there a better way?

"Jeff Boyce" wrote:

It sounds like you are saying you want to record the same value in two
different tables (i.e., one table for the main form, another table for
the
subform). Why is that? Using a relational database like Access, you
shouldn't need to.

More info, please...

Regards

Jeff Boyce
Microsoft Office/Access MVP

"Saylindara" wrote in message
...
How can I make a value on a form the default value on a subform?









  #8  
Old December 18th, 2008, 04:46 PM posted to microsoft.public.access.gettingstarted
Jeff Boyce
external usenet poster
 
Posts: 8,621
Default Field value as default on subform

You'll need to plan to spend some time learning to use the events that
Access forms and reports offer. As a very simple approach, try looking up
BeforeUpdate in Access HELP. Also try using MS Access BeforeUpdate as
search terms on-line.

Good luck!

Regards

Jeff Boyce
Microsoft Office/Access MVP

"Saylindara" wrote in message
...
Good point. I'll have to have a rethink.
I've no idea how to use BeforeUpdate should I need it. Where can I get
some
help on using these sort of properties?
Thanks for your help.

"Jeff Boyce" wrote:

So [ActualDuration] is a characteristic of a specific instance of
[Event]?
And most of the time, it is the same as [PredictedDuration]?

If most of the time it's the same, why bother to re-record it, over and
over
again? Why not record the [ActualDuration] only when it varies from the
[PredictedDuration]? That way, you could use a query to return the
[ActualDuration] (if it is entered), or the [PredictedDuration] (if it
didn't differ).

JOPO (just one person's opinion)

.... and if you absolutely must have a duplicate(d) value in each
sub-form
record, take a look at using the sub-form's BeforeUpdate event to load up
that field. No need to set it as default, just write it before
finalizing
the sub-form record.

Regards

Jeff Boyce
Microsoft Office/Access MVP



"Saylindara" wrote in message
...
The same EventName can be attended by many people on different dates at
different locations.

"Jeff Boyce" wrote:

So it isn't the same field, it's something like [PredictedDuration]
and
[ActualDuration]?

I'm still somewhat puzzled, though. If your main-form/subform
construction
is standard, the subform refers to a "many" table, related to the
main-form
(the "one" table). I would think that "predicted" and "actual" are
both
characteristics of the event, not one related to the event and the
other
related to some kind of "child" record.

What are you pointing that subform at?

Regards

Jeff Boyce
Microsoft Office/Access MVP

"Saylindara" wrote in message
...
I've got a main form Event with a field Duration showing how long
the
event
is predicted to last. On the subform I've got attendance details and
a
field
Duration to show how long the event actually lasted. Most likely it
will
be
the same amount of time which is why I wanted the default value from
the
main
form. Is there a better way?

"Jeff Boyce" wrote:

It sounds like you are saying you want to record the same value in
two
different tables (i.e., one table for the main form, another table
for
the
subform). Why is that? Using a relational database like Access,
you
shouldn't need to.

More info, please...

Regards

Jeff Boyce
Microsoft Office/Access MVP

"Saylindara" wrote in
message
...
How can I make a value on a form the default value on a subform?











 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 05:00 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.