access vba

Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

Forum home » Delegate support and help forum » Microsoft Access VBA Training and help » Access VBA

Access VBA

resolvedResolved · Low Priority · Version 2003

Fabian has attended:
Access VBA course

Access VBA

list box - when it gets populated - is it going to change the size automatically so it fits the records or do I need to cater for that and code it?

RE: access VBA

Hi Fabian

Thank you for your question

The best approach is to use code to set the column widths for your combo box. Use the column widths property to set this. For example the following would set the widths of a two column combo box.

cmbCombo.ColumWidths = "3cm;5cm"


Hope this helps

Regards

Stephen

RE: access VBA

ok - thanks for this Stephen

 

Training courses

 

Training information:

Welcome. Please choose your application (eg. Excel) and then post your question.

Our Microsoft Qualified trainers will then respond within 24 hours (working days).

Frequently Asked Questions
What does 'Resolved' mean?

Any suggestions, questions or comments? Please post in the Improve the forum thread.


 

Access tip:

Choosing data types in Access

Not sure which data type to use for your Access fields? Here are some guidelines to help you choose a data type to assign to a field.

- The Text data type can accept up to 255 characters. For information that will be recorded in paragraphs, use Memo.

- Also use Text for numbers that aren't going to be used in calculations, e.g. phone numbers.

- Use the Currency data type for monetary amounts.

- Use Date/Time for dates.

- Most other numbers can use the Number data type, but the Field Size property may have to be altered.

- For fields that have only two alternatives (yes, no) use Yes/No data type. If there is likely to be a third entry option (e.g. maybe or don't know) use Text instead.

View all Access hints and tips


Server loaded in 0.08 secs.