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. |
|
|
|
Thread Tools | Display Modes |
#11
|
|||
|
|||
show field depending on checkbox
So use
Forms!MyOtherForm!MyTextbox.Visible = Me.MyCheckbox or Forms!MyOtherForm.SubForm.Form!MyTextbox.Visible = Me.MyCheckbox -- Doug Steele, Microsoft Access MVP http://I.Am/DougSteele (no e-mails, please!) "VB" wrote in message ... O. and one more thing. it's not Me. it's another form! there is one form with checkboxes and another one (maybe subform) with textboxes (or datasheet). "Douglas J. Steele" wrote: In the AfterUpdate of each of the 35 checkboxes, you'd need code like: Me.MyTextbox.Visible = Me.MyCheckbox to have MyTextbox be visible if MyCheckbox is checked (and not visible if MyCheckbox is unchecked) -- Doug Steele, Microsoft Access MVP http://I.Am/DougSteele (no e-mails, please!) "VB" wrote in message ... I have a query with 35 fields. on the form I'd like to create 35 checkboxes. user may check or uncheck them depending on he fields thay want to see. is it possible? how to pass checkboxes true/fals to query? or how to hide unnecessary columnes on the form (datasheet)? help please |
#12
|
|||
|
|||
show field depending on checkbox
if another form is closed I get err Msg. if it's closed, columnes are not
hiding! "Ofer" wrote: To hide a field in another form Forms![Form Name]![FieldName].ColumnHidden = True In a SubForm Forms![Form Name]![Sub Form NAme].Form![FieldName].ColumnHidden = True -- The next line is only relevant to Microsoft''s web-based interface users. If I answered your question, please mark it as an answer. It''s useful to know that my answer was helpful HTH, good luck "VB" wrote: O. and one more thing. it's not Me. it's another form! there is one form with checkboxes and another one (maybe subform) with textboxes (or datasheet). "Douglas J. Steele" wrote: In the AfterUpdate of each of the 35 checkboxes, you'd need code like: Me.MyTextbox.Visible = Me.MyCheckbox to have MyTextbox be visible if MyCheckbox is checked (and not visible if MyCheckbox is unchecked) -- Doug Steele, Microsoft Access MVP http://I.Am/DougSteele (no e-mails, please!) "VB" wrote in message ... I have a query with 35 fields. on the form I'd like to create 35 checkboxes. user may check or uncheck them depending on he fields thay want to see. is it possible? how to pass checkboxes true/fals to query? or how to hide unnecessary columnes on the form (datasheet)? help please |
#13
|
|||
|
|||
show field depending on checkbox
You can set the fields ColumnHidden on the load event of the form.
-- The next line is only relevant to Microsoft''s web-based interface users. If I answered your question, please mark it as an answer. It''s useful to know that my answer was helpful HTH, good luck "VB" wrote: if another form is closed I get err Msg. if it's closed, columnes are not hiding! "Ofer" wrote: To hide a field in another form Forms![Form Name]![FieldName].ColumnHidden = True In a SubForm Forms![Form Name]![Sub Form NAme].Form![FieldName].ColumnHidden = True -- The next line is only relevant to Microsoft''s web-based interface users. If I answered your question, please mark it as an answer. It''s useful to know that my answer was helpful HTH, good luck "VB" wrote: O. and one more thing. it's not Me. it's another form! there is one form with checkboxes and another one (maybe subform) with textboxes (or datasheet). "Douglas J. Steele" wrote: In the AfterUpdate of each of the 35 checkboxes, you'd need code like: Me.MyTextbox.Visible = Me.MyCheckbox to have MyTextbox be visible if MyCheckbox is checked (and not visible if MyCheckbox is unchecked) -- Doug Steele, Microsoft Access MVP http://I.Am/DougSteele (no e-mails, please!) "VB" wrote in message ... I have a query with 35 fields. on the form I'd like to create 35 checkboxes. user may check or uncheck them depending on he fields thay want to see. is it possible? how to pass checkboxes true/fals to query? or how to hide unnecessary columnes on the form (datasheet)? help please |
|
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
show query result depending on checkbox | VB | Running & Setting Up Queries | 1 | November 6th, 2005 05:05 PM |
Calendar Question | Josh | General Discussion | 7 | March 28th, 2005 11:19 PM |
DCount compare table.textfield to form.text field question | RNUSZ@OKDPS | Using Forms | 1 | March 11th, 2005 02:05 AM |
Design help, please | SillySally | Using Forms | 27 | March 6th, 2005 04:11 AM |
Another Question about "How do I add "Yes" to checkbox"! | jimmy dean | New Users | 15 | January 29th, 2005 02:51 PM |