Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms Programming / July 2005

Tip: Looking for answers? Try searching our database.

Me.Visible

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ripper - 24 Jul 2005 07:02 GMT
Can someone tell me why this code is not working

OnClick Event of lstClickOpen

me.lstClickOpen.Column(1).visible=true

I keep getting a runtime error (424 Object Required) when I do.

The list box has 2 columns Title and form.

Access 2000 format.
Signature

Thanks As Always
Rip

tina - 24 Jul 2005 07:19 GMT
AFAIK, a listbox column doesn't have a Visible property. to show or hide a
column in a listbox, try setting the ColumnWidths property, as

   Me!MyListBox.ColumnWidths = "2 in; 0 in"

for details, see the property's topic in Access Help or VBA Help.

hth

> Can someone tell me why this code is not working
>
[quoted text clipped - 7 lines]
>
> Access 2000 format.
david@epsomdotcomdotau - 24 Jul 2005 08:32 GMT
The error message means that .Column(1) is a text value,
not an object.  The text values don't have any properties
at all: you need to change a property of the combobox.

Also, for a combo box, setting a column not visible is
the same as setting the column width to 0.

Yes, that is different from forms, controls etc, because forms,
controls etc are 'windows', but columns are actually just
formatted text in a line of text inside a multi-line text window.

(david)

> Can someone tell me why this code is not working
>
[quoted text clipped - 7 lines]
>
> Access 2000 format.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.