PC Review


Reply
Thread Tools Rate Thread

Hide/Unhide Columns in Datasheet View Forms

 
 
Armando Ruiz
Guest
Posts: n/a
 
      16th Apr 2004
Does anyone know how can I hide and unhide columns of a
datasheet form programatically. The form I'm trying to
hide columns from is a subform on a parent form, but I
think that doesn't matter in any case.
What I want to do is to reset its recordsource having the
following columns:
ProdId, ItemDescription, Unit, Price1, Price2, Price3
Instead of having three price columns I want to have just
one and reset it to the next field by reseting the form's
recordsource. Instead of having four forms and hiding
them and showing them when I need them. the fourth form
does show all the fields though. So i just want to work
with the fourth form, but I want to show the price's
columns when i need them.

Can anyone tell me how to accomplish this task?

Thank you all in advance.
Armando Ruiz
 
Reply With Quote
 
 
 
 
bP
Guest
Posts: n/a
 
      16th Apr 2004
Use the visible property e.g.
if price1 > 100 then
subform!txt1.visible = true
end if


>-----Original Message-----
>Does anyone know how can I hide and unhide columns of a
>datasheet form programatically. The form I'm trying to
>hide columns from is a subform on a parent form, but I
>think that doesn't matter in any case.
>What I want to do is to reset its recordsource having

the
>following columns:
>ProdId, ItemDescription, Unit, Price1, Price2, Price3
>Instead of having three price columns I want to have

just
>one and reset it to the next field by reseting the

form's
>recordsource. Instead of having four forms and hiding
>them and showing them when I need them. the fourth form
>does show all the fields though. So i just want to work
>with the fourth form, but I want to show the price's
>columns when i need them.
>
>Can anyone tell me how to accomplish this task?
>
>Thank you all in advance.
>Armando Ruiz
>.
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How Unhide & Hide Columns with VBA jean Microsoft Excel Misc 1 17th Jun 2009 03:03 AM
How to hide columns in a form in datasheet view if null =?Utf-8?B?dG01?= Microsoft Access Form Coding 5 31st Oct 2007 11:14 PM
Hide/Unhide columns using button on top over relevant columns mompara@sympatico.ca Microsoft Excel Misc 1 7th Mar 2007 10:24 PM
I set up a macro to hide/unhide columns. It hides more columns =?Utf-8?B?TG9yaQ==?= Microsoft Excel Programming 1 6th Sep 2006 05:08 PM
unhide columns in datasheet view =?Utf-8?B?SmVmZg==?= Microsoft Access Forms 1 8th Apr 2005 06:39 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:45 PM.