![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I am working in MS access 2007 , I have a subform contains two fields customer name (type text) and customer selected (type yes/no) , one of these customer has a value 'ALL' , the question is : is there a way when i click in the customer selected field that has the customer name 'ALL' , to select all the records of the customer (mean add tic in all customer selected) ? any one could tell me how to do that ? |
#3
| |||
| |||
|
|
| I am working in MS access 2007 , I have a subform contains two fields | customer name (type text) and customer selected (type yes/no) , one | of | these customer has a value 'ALL' , the question is : | is there a way when i click in the customer selected field that has | the customer name 'ALL' , to select all the records of the customer | (mean add tic in all customer selected) ? | any one could tell me how to do that ? Put code like this in the checkbox's AfterUpdate event procedure: Dim strSQL As String If Me![customer selected] = True Then If Me![customer name] = "ALL" Then strSQL = "Update [My Table Name] Set [customer selected] = True;" CurrentDb.Execute strSQL Me.ReQuery End If End If Substitute my example names with your own. What that does is run an update SQL statement to check all the boxes if both [If] conditions are satisfied, then it requery's the form so the modifications are visible. |
#4
| |||
| |||
|
|
I am working in MS access 2007 , I have a subform contains two fields customer name (type text) and customer selected (type yes/no) , one of these customer has a value 'ALL' , the question is : is there a way when i click in the customer selected field that has the customer name 'ALL' , to select all the records of the customer (mean add tic in all customer selected) ? any one could tell me how to do that ? |
![]() |
| Thread Tools | |
| Display Modes | |
| |