Re: Change field format programmatically
- From: Marshall Barton <marshbarton@xxxxxxxxxx>
- Date: Thu, 02 Feb 2006 17:06:18 -0600
wAyne wrote:
I have a table of items - where the item number display format is different
for based on item type.
e.g item type vertical item number ver-123 a b cc dd
item type piping itme number ver-4567890 a dd
Is ther a way I can alter the format so that when the record is dispayed it
display's the item number in the appropriate way?
If the form is displayed in Single View (not data*** or
continuous), then you can use the form's Current event to
set the item number text box's Format property as needed.
Then general idea is something like:
Select Case Me.ItemType
Case "vertical"
Me.txtItemNumber.Format = "@@@@@@ @ @ @@ @@"
Case "piping"
Me.txtItemNumber.Format = "@@@@@@@@@@@ @ @@"
Case
. . .
--
Marsh
MVP [MS Access]
.
- Prev by Date: additional help with a module
- Next by Date: Re: How to extrct values from a parameter query to use in a rpt title
- Previous by thread: additional help with a module
- Next by thread: Re: Change field format programmatically
- Index(es):
Loading