microsoft access course - access vba
Microsoft Office Training verified by visa - mastercard securecode about microsoft training company london ukadd this page to your favourites/bookmarksAdd to favourites
view a printable version of this pagePrintable version
email this page to somebodyEmail this page
Customer: Sign in
Delegate: Sign in
Trainer: Log in

Forum home » Delegate support and help forum » Microsoft Access VBA Training and help » microsoft access course - Access VBA

microsoft access course - Access VBA

The UK's most regular instructor-led training courses.
Training information: microsoft access course · Access course microsoft training · Microsoft Office VBA training

resolvedResolved · Low Priority · Version Standard

Access VBA

Marjan has attended:
Access VBA course
Access VBA course

by - delegate Marjan [1 post] (2008 Jan 17 Thu, 12:38) replyReply

Is it possible to change the date format in VBA editor to European style?

Thanks

Marjan

Access Intermediate 1 day course
Version Date Location Places
available
Book Next place rate:
Card Invoice
2003/XP 2008 Jul 8 Tue Southwark 4 book now £207 £215
2003/XP 2008 Jul 15 Tue Bayswater 6 book now £195 £205
2003/XP 2008 Jul 18 Fri Bloomsbury 5 book now £198 £215
2007 2008 Jul 24 Thu Bloomsbury 4 book now £224 £224
2003/XP 2008 Jul 29 Tue Bloomsbury 5 book now £198 £215
2003/XP 2008 Jul 30 Wed Tooting 0 FULL    
Full Schedule: See all 77 Access Intermediate course dates.
Bookings currently available until 24th November 2009.

RE: Access VBA

by - trainer Rich platinum contributer[654 posts] (2008 Apr 4 Fri, 09:27) replyReply

Hi Marjan,

Sorry for the delay in answering your question.

What's European style?

You can Format a date to your liking using VBA's Format function, which has the structure:
Format ( expression, [ format, [ firstdayofweek, [firstweekofyear] ] ] )

where:
'expression' is the value to format.

and 'format' (optional) is the format to apply to the expression.

You can either define your own format or use one of the named formats that Excel has predefined such as: General Date, Long Date, Medium Date, Short Date, Long Time, Medium Time, Short Time.

When defining your own format, you can specify how the date appears using 'y' for year, 'm' for month, and 'd' for day of month. But you need to specify them multiple times to get the right format. Eg. For year 2008, 'yy' gives you '08', whereas 'yyyy' gives you 2008. Experiment with the others (it's similar to the date format when you're formatting a cell in Excel).

Examples:
Format(#7/06/2005#, "yyyy/mm/dd") would return '2005/06/07'
Format(#7/06/2005#, "Short Date") would return '7/06/2005'
Format(#7/06/2005#, "Long Date") would return 'June 7, 2005'

I hope this helps you change your date to 'European style'.

If you require further assistance, please reply to this post and I'll give you some more info based on your response.

Have a great day.

Kind regards, Rich


Related articles

· Why a Microsoft Access Course Could Change the Way You Do Business
· MS Access: Access your Personal Information with Ease
· Quick MS Access Training: Creating Custom Database Tables in 12 Simple Steps
· Microsoft Access Tighten your Security Controls
· Discover the Secrets within Your Business through Microsoft Access Training

Access tip:

Combo box for finding records

You can use a combo box in a form to look up a record. If you place the comb box in the Form header, by then selcting they a field type from the drop down loist, you will see the record for it

View all Access hints and tips

Institute of IT Training - Accredited Training Provider Institute of IT Training - Accredited Training Provider Prodigy Platinum Learning Partner Microsoft Office Specialist Authorised Testing Centre

Microsoft Registered Partner
microsoft office
ms office project server

Association of Computer Trainers Valid HTML 4.01 Transitional
Valid CSS Markup

secure online payments - visa - mastercard

Mini sitemap. These are the main areas of our web site. Full sitemap.

Training by application Main information pages See also

Access courses
DreamWeaver courses
Excel courses
MS Project courses
Outlook courses
PowerPoint courses
VBA courses
Word courses
(more...)

Public scheduled courses
On-site training
Closed company courses

Microsoft Office training
Pricing and availability
Training schedule
Training venues

Access training
Dreamweaver training
Excel training
MS Project training
PowerPoint training

London Computer Training
Computer Training London

Microsoft Access training
Microsoft Excel training
Microsoft Project training
Microsoft Outlook training
Microsoft Powerpoint training
Microsoft Word training

Time Management Course London

Interested in Access training? Please see the following pages:
microsoft access courses · microsoft training access course
microsoft+access+training · access courses in london

Training Information
AddThis Social Bookmark Button What's this?
Add to Del.icio.us Add to Facebook Add to Digg Add to Reddit Add to Google Add to Yahoo Add to Diigo Add to Mr. Wong Add to Linkarena Add to Power Oldie Add to Folkd Add to Jumptags Add to Upchuckr Add to Simpy Add to StumbleUpon Add to Slashdot Add to Netscape Add to Furl Add to Spurl Add to Blinklist Add to Blogmarks Add to Technorati Add to Newsvine Add to Blinkbits Add to Ma.Gnolia Add to Smarking Add to Netvouz