473,769 Members | 2,081 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Datasheet form - change column width, with a twist!

I have searched this NG for datasheet column width posts and have read
many of them. None of them seem to address what I would like to do.
I'm beginning to think what I want can't be done. Here is what I would
like:

I have a datasheet form with five columns. The third column is a
combobox with two visible columns. The final displayed value and bound
column is column 1. The width of the third datasheet column is wide
enough to see the column 1 values but not the column 2 values of the
combo dropdown. The user is forced to scroll to the right to see the
2nd column. I would like to resize the width of the datasheets third
column on the combo OnEntry event so that both columns of the dropdown
are visible without scrolling. Then on the combo OnExit event, size
the column back to its original width. I have found no way to do this.
The Me.cboMyList.Co lumnWidth property is not available when the form
is a datasheet; it is when it is a continuous form. Setting the Width
property of the combobox has no effect either in code or in the forms
design mode. Using a continuous form is not what I want to do.

Any help would be appreciated.

Nov 13 '05 #1
2 4064
Change the ComboBox's List Width property to something larger/other than
"Auto."
--
MGFoster:::mgf0 0 <at> earthlink <decimal-point> net
Oakland, CA (USA)

Arnie wrote:
I have searched this NG for datasheet column width posts and have read
many of them. None of them seem to address what I would like to do.
I'm beginning to think what I want can't be done. Here is what I would
like:

I have a datasheet form with five columns. The third column is a
combobox with two visible columns. The final displayed value and bound
column is column 1. The width of the third datasheet column is wide
enough to see the column 1 values but not the column 2 values of the
combo dropdown. The user is forced to scroll to the right to see the
2nd column. I would like to resize the width of the datasheets third
column on the combo OnEntry event so that both columns of the dropdown
are visible without scrolling. Then on the combo OnExit event, size
the column back to its original width. I have found no way to do this.
The Me.cboMyList.Co lumnWidth property is not available when the form
is a datasheet; it is when it is a continuous form. Setting the Width
property of the combobox has no effect either in code or in the forms
design mode. Using a continuous form is not what I want to do.

Nov 13 '05 #2
Thank you! Although not exactly what I was describing, it was exactly
what I wanted!

Nov 13 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
13424
by: A Clark | last post by:
I have a subform that displays a datasheet. There are a couple of different queries that can be displayed in the datasheet. The queries are available in a combo box on the main form. The problem I am having is that when I change the query all the column widths remain the same. This doesn't look very good. I can't figure out a way to set the column widths. I have tried.. Subform.controls(Name of Column).columnwidth = IntColumnWidth
3
8058
by: dhowell | last post by:
Can I have a datasheet form automatically "fit" the column widths when the form opens?
1
3647
by: Ajay kumar choudhary | last post by:
how to dynamically change column width of a table in reporting services with asp.net.
0
1819
by: backer | last post by:
i want to know how to change column width in crosstab reports
0
1327
by: backer | last post by:
i want to know how to change column width in crosstab reports
1
2968
by: tom taol | last post by:
Currently, there are 3 datasheets in a form. and, i changed column widths of each form(datasheet type) by the way, there is not keep the column width in ms access. for example, i close the form, open the form again... the width of the form is not keep.... I want to apply column widths of a form lately. *** Sent via Developersdex http://www.developersdex.com ***
1
1354
by: TapasRanjanRay | last post by:
hi all some body please tell me how can i change the width of the columns that are in a gridview thanks tapas
3
1515
by: piercy | last post by:
Hi, i have a DataGrid (dgFailed) and it gets populated with two columns (which comes from arrays and sql db values). the table that populates the datagrid(datasource) is called tblfailed. tblfailed Student | Reason Fred | No Contact Info james | Cancel Button Pressed Now the reason is generally always going to be longer then the name. so i need to be able to set the width of the Reason column so fit the rest of the table, 1)...
2
6808
by: Deekay | last post by:
Help !! My code below generates error 425 'object required'. (I'm using Access 2003) I have a table opened as a datasheet, but the column widths need adjusting programatically to fit. I have seen posts about doing this on datasheets on forms or subforms - but can I do it this way on a table opened as a datasheet? The application is being distributed as an .mde file to general users with only custom menus showing. I can't therefore use any...
0
9589
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9423
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10216
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9997
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7413
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5310
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5448
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3965
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3565
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.