borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (Update Primary Key at run time)Next Topic (how to make database using ado object library at run time!!!) New Topic New Poll Post Reply
AndreaVB Forum : Database : change the width of column in access table
Poster Message
sal21
Level: Protégé

Registered: 13-06-2006
Posts: 4

icon change the width of column in access table

via ADOX or the rdriver in vb or vba is possible to change the width of filed in table access...?


____________________________
Sal

10-05-2007 at 09:44 PM
View Profile Send Email to User Show All Posts | Quote Reply
yronium
Level: Moderator


Registered: 14-04-2002
Posts: 907
icon Re: change the width of column in access table

Hello. It doesn't make much sense.
You are speaking about a column width, as a field has no width. In fact, a field is only a data container and its properties don't include any graphical information.

Column width is determined by the interface you are using for viewing data: you can view data by MSAccess' Table window, or maybe by an Access form, or a VB form, or a web page, or a text file, or a message box, or even a slider control, or else. According with the viewing method, you could use a control or another to show fields values, with columns or not, so you could have the need to resize a grid column, or a textbox, or a textboxes array, or a messagebox, or a web page html table, etc.
Nothing of the above can be specified via ADOX or another data provider, and VB or VBA instructions depend on the control you use.

Finally, if you are looking for a way to automatically resize a column in MSAccess Table View window, it's only possible via normal Access' interface tools, Format menu or right click column's header, and they can not be driven by any external instruction (and it is the correct behaviour of every compiled application, like MSAccess). Even VBA code is working only within Access' forms, in Forms viewing mode.

Hope it helps

____________________________
Real Programmer can count up to 1024 on his fingers

11-05-2007 at 06:48 AM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : Database : change the width of column in access table
Previous Topic (Update Primary Key at run time)Next Topic (how to make database using ado object library at run time!!!) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder