A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

List Box Right Alignment - is it possible?



 
 
Thread Tools Display Modes
  #1  
Old November 4th, 2009, 10:03 PM posted to microsoft.public.access.forms
mitja
external usenet poster
 
Posts: 5
Default List Box Right Alignment - is it possible?

Hi,
I am using a sub to create a list in a form. There are a few columns with
numbers and I need them right aligned. Is it possible?
Thanks
Mitja

Code:
Me.ListN.ColumnCount = 6
Me.ListN.ColumnWidths = "0cm;4cm;4cm;4cm;4cm;4cm"
Me.ListN.ColumnHeads = True
Me.ListN.RowSource = "SELECT DISTINCTROW ....

  #2  
Old November 5th, 2009, 12:01 AM posted to microsoft.public.access.forms
fredg
external usenet poster
 
Posts: 4,386
Default List Box Right Alignment - is it possible?

On Wed, 4 Nov 2009 23:03:16 +0100, mitja wrote:

Hi,
I am using a sub to create a list in a form. There are a few columns with
numbers and I need them right aligned. Is it possible?
Thanks
Mitja

Code:
Me.ListN.ColumnCount = 6
Me.ListN.ColumnWidths = "0cm;4cm;4cm;4cm;4cm;4cm"
Me.ListN.ColumnHeads = True
Me.ListN.RowSource = "SELECT DISTINCTROW ....


See:
http://www.lebans.com/justicombo.htm
--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
  #3  
Old November 5th, 2009, 12:35 AM posted to microsoft.public.access.forms
John W. Vinson
external usenet poster
 
Posts: 18,261
Default List Box Right Alignment - is it possible?

On Wed, 4 Nov 2009 23:03:16 +0100, "mitja" wrote:

I am using a sub to create a list in a form. There are a few columns with
numbers and I need them right aligned. Is it possible?


A listbox isn't the ideal tool for this purpose - could you consider using a
Continuous subform, with textboxes (which can be right aligned)?
--

John W. Vinson [MVP]
  #4  
Old November 5th, 2009, 04:13 AM posted to microsoft.public.access.forms
Beetle
external usenet poster
 
Posts: 1,254
Default List Box Right Alignment - is it possible?

See what Stephen Lebans has at;

http://www.lebans.com/justicombo.htm

You might want to bookmark his page also. He has lots
of Access tricks.
--
_________

Sean Bailey


"mitja" wrote:

Hi,
I am using a sub to create a list in a form. There are a few columns with
numbers and I need them right aligned. Is it possible?
Thanks
Mitja

Code:
Me.ListN.ColumnCount = 6
Me.ListN.ColumnWidths = "0cm;4cm;4cm;4cm;4cm;4cm"
Me.ListN.ColumnHeads = True
Me.ListN.RowSource = "SELECT DISTINCTROW ....

 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 08:34 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.