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  

Update control



 
 
Thread Tools Display Modes
  #1  
Old December 15th, 2006, 11:03 AM posted to microsoft.public.access.forms
ITC
external usenet poster
 
Posts: 5
Default Update control

Form_SomeForm.SomeField.Value = 1

Sets the value of the active/current record, since i am using a tabular form
i want to set the value of the field in all the records.

Thanks


  #2  
Old December 16th, 2006, 10:55 AM posted to microsoft.public.access.forms
ITC
external usenet poster
 
Posts: 5
Default Update control

Hi,

I am trying to do somthing like a "select all".

For this i have created a button in which i have am using a macro
Form_SomeForm.SomeField.Value = 1, SomeField is a CheckBox. But it sets only
the active record and not all the records.

Please help.



"ITC" wrote in message
...
Form_SomeForm.SomeField.Value = 1

Sets the value of the active/current record, since i am using a tabular
form i want to set the value of the field in all the records.

Thanks



  #3  
Old December 16th, 2006, 08:33 PM posted to microsoft.public.access.forms
Jacob
external usenet poster
 
Posts: 14
Default Update control

ITC,

In order to update *all* the records with the same value use an Update
Qurey, base on the relevant table and set the value of "somField" to
Yes,True, or -1 (-1 is the value of True, 0 is the value of False)

Regrds/JK

ITC wrote:
Hi,

I am trying to do somthing like a "select all".

For this i have created a button in which i have am using a macro
Form_SomeForm.SomeField.Value = 1, SomeField is a CheckBox. But it sets only
the active record and not all the records.

Please help.



"ITC" wrote in message
...
Form_SomeForm.SomeField.Value = 1

Sets the value of the active/current record, since i am using a tabular
form i want to set the value of the field in all the records.

Thanks


  #4  
Old December 17th, 2006, 12:28 PM posted to microsoft.public.access.forms
ITC
external usenet poster
 
Posts: 5
Default Update control

Thanks, it works.

I had to do a me.refresh to ensure it refreshes the values immediately in
the current view

"Jacob" wrote in message
ups.com...
ITC,

In order to update *all* the records with the same value use an Update
Qurey, base on the relevant table and set the value of "somField" to
Yes,True, or -1 (-1 is the value of True, 0 is the value of False)

Regrds/JK

ITC wrote:
Hi,

I am trying to do somthing like a "select all".

For this i have created a button in which i have am using a macro
Form_SomeForm.SomeField.Value = 1, SomeField is a CheckBox. But it sets
only
the active record and not all the records.

Please help.



"ITC" wrote in message
...
Form_SomeForm.SomeField.Value = 1

Sets the value of the active/current record, since i am using a tabular
form i want to set the value of the field in all the records.

Thanks




 




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 11:52 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.