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 » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Command Buttons



 
 
Thread Tools Display Modes
  #1  
Old August 24th, 2005, 08:23 PM
jimswinder
external usenet poster
 
Posts: n/a
Default Command Buttons

Al:

Does the Me in Me.Other = Me.FirstName equal the Table Name?

"Al Camp" wrote:

Jim,
If a text control, on a form, is "bound" to a field in your table, any
data entered into that text control will be stored in that field of your
table.
"Bound" means that the ControlSource property of that text control is set
to the appropriate field name from your table
If that value must be passed to another control on the form, and saved in
the table, then that second field must be bound also.
Say you had a field called FirstName, bound to [FirstName] in your
table... and another field on the form called Other, bound to field [Other]
in your table.
In order to pass that value from FirstName to Other, use the AfterUpdate
event of FirstName with this code...
Me.Other = Me.FirstName

A text control must be bound to a field in your table (ControlSource) in
order to save the value entered into it.
A text control with a (ControlSource) calculation such as =FirstName will
display the FirstName value, but will not store it.

hth
Al Camp
Candia Computer Consulting - Candia NH
http://home.comcast.net/~cccsolutions


"jimswinder" wrote in message
...
I am trying to create a button that when clicked will take text from a
field
in a form and put it into a field in the table from where the form was
created. Is this possible?
I have tried using the Expression Builder (=[Combo51] = [Combo42] )...but
the text does not get into the table field. Thoughts??




  #2  
Old August 25th, 2005, 01:42 AM
Al Camp
external usenet poster
 
Posts: n/a
Default

Jim.
I think Fred G understood better than I what you were trying to do.
Did you read his response?
"jimswinder" wrote in message
...
Al:

Does the Me in Me.Other = Me.FirstName equal the Table Name?

"Al Camp" wrote:

Jim,
If a text control, on a form, is "bound" to a field in your table, any
data entered into that text control will be stored in that field of your
table.
"Bound" means that the ControlSource property of that text control is
set
to the appropriate field name from your table
If that value must be passed to another control on the form, and saved
in
the table, then that second field must be bound also.
Say you had a field called FirstName, bound to [FirstName] in your
table... and another field on the form called Other, bound to field
[Other]
in your table.
In order to pass that value from FirstName to Other, use the
AfterUpdate
event of FirstName with this code...
Me.Other = Me.FirstName

A text control must be bound to a field in your table (ControlSource)
in
order to save the value entered into it.
A text control with a (ControlSource) calculation such as =FirstName
will
display the FirstName value, but will not store it.

hth
Al Camp
Candia Computer Consulting - Candia NH
http://home.comcast.net/~cccsolutions


"jimswinder" wrote in message
...
I am trying to create a button that when clicked will take text from a
field
in a form and put it into a field in the table from where the form was
created. Is this possible?
I have tried using the Expression Builder (=[Combo51] =
[Combo42] )...but
the text does not get into the table field. Thoughts??






  #3  
Old August 25th, 2005, 02:00 AM
Al Camp
external usenet poster
 
Posts: n/a
Default

Fred is demonstrating how to concatenate 4 fields (your example) into one
field... but for display ONLY.
= [Field1] & " " & [Field2] & " " & [Field3] & " " & [Field4]
Since all 4 fields are bound, and saved in the table, there's no need to
save the "I see red spots". You can always reconcatenate them again
later... in any subsequent form or report or query.

In another example, if you saved [Price] and [Qty] you wouldn't have to save
the Cost (=Price*Qty). You would just place an unbound field on your form
with =[Price]*[Qty] and it will always display the correct Cost.
hth
Al Camp
Candia Computer Consulting - Candia NH
http://home.comcast.net/~cccsolutions


"jimswinder" wrote in message
...
Al:

Does the Me in Me.Other = Me.FirstName equal the Table Name?

"Al Camp" wrote:

Jim,
If a text control, on a form, is "bound" to a field in your table, any
data entered into that text control will be stored in that field of your
table.
"Bound" means that the ControlSource property of that text control is
set
to the appropriate field name from your table
If that value must be passed to another control on the form, and saved
in
the table, then that second field must be bound also.
Say you had a field called FirstName, bound to [FirstName] in your
table... and another field on the form called Other, bound to field
[Other]
in your table.
In order to pass that value from FirstName to Other, use the
AfterUpdate
event of FirstName with this code...
Me.Other = Me.FirstName

A text control must be bound to a field in your table (ControlSource)
in
order to save the value entered into it.
A text control with a (ControlSource) calculation such as =FirstName
will
display the FirstName value, but will not store it.

hth
Al Camp
Candia Computer Consulting - Candia NH
http://home.comcast.net/~cccsolutions


"jimswinder" wrote in message
...
I am trying to create a button that when clicked will take text from a
field
in a form and put it into a field in the table from where the form was
created. Is this possible?
I have tried using the Expression Builder (=[Combo51] =
[Combo42] )...but
the text does not get into the table field. Thoughts??






  #4  
Old August 25th, 2005, 12:56 PM
jimswinder
external usenet poster
 
Posts: n/a
Default

Here is the ultimate problem (at least for me). I have 34 different tables
all with differing fields that contain descriptions of parts. I need to run a
query that will look at EVERY Field in EVERY Table for a key word. I thought
it would be easier to have the query look in one field rather than up to 340
different fileds. Suggestions?


"Al Camp" wrote:

Fred is demonstrating how to concatenate 4 fields (your example) into one
field... but for display ONLY.
= [Field1] & " " & [Field2] & " " & [Field3] & " " & [Field4]
Since all 4 fields are bound, and saved in the table, there's no need to
save the "I see red spots". You can always reconcatenate them again
later... in any subsequent form or report or query.

In another example, if you saved [Price] and [Qty] you wouldn't have to save
the Cost (=Price*Qty). You would just place an unbound field on your form
with =[Price]*[Qty] and it will always display the correct Cost.
hth
Al Camp
Candia Computer Consulting - Candia NH
http://home.comcast.net/~cccsolutions


"jimswinder" wrote in message
...
Al:

Does the Me in Me.Other = Me.FirstName equal the Table Name?

"Al Camp" wrote:

Jim,
If a text control, on a form, is "bound" to a field in your table, any
data entered into that text control will be stored in that field of your
table.
"Bound" means that the ControlSource property of that text control is
set
to the appropriate field name from your table
If that value must be passed to another control on the form, and saved
in
the table, then that second field must be bound also.
Say you had a field called FirstName, bound to [FirstName] in your
table... and another field on the form called Other, bound to field
[Other]
in your table.
In order to pass that value from FirstName to Other, use the
AfterUpdate
event of FirstName with this code...
Me.Other = Me.FirstName

A text control must be bound to a field in your table (ControlSource)
in
order to save the value entered into it.
A text control with a (ControlSource) calculation such as =FirstName
will
display the FirstName value, but will not store it.

hth
Al Camp
Candia Computer Consulting - Candia NH
http://home.comcast.net/~cccsolutions


"jimswinder" wrote in message
...
I am trying to create a button that when clicked will take text from a
field
in a form and put it into a field in the table from where the form was
created. Is this possible?
I have tried using the Expression Builder (=[Combo51] =
[Combo42] )...but
the text does not get into the table field. Thoughts??







 




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 03:14 PM.


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