PC Review Forums Newsgroups Microsoft Access Microsoft Access VBA Modules ! With Statement !

Reply

! With Statement !

 
Thread Tools Rate Thread
Old 10-11-2003, 06:35 AM   #1
Wembly
Guest
 
Posts: n/a
Default ! With Statement !


Hi,

I was wondering if the following can be done?



With currentForm
!currentControl = Format(Me.acxCalendar, "Short Date")
End With
  Reply With Quote
Old 10-11-2003, 06:56 AM   #2
Dirk Goldgar
Guest
 
Posts: n/a
Default Re: ! With Statement !

"Wembly" <anonymous@discussions.microsoft.com> wrote in message
news:044101c3a74c$7b860680$a501280a@phx.gbl
> Hi,
>
> I was wondering if the following can be done?
>
>
>
> With currentForm
> !currentControl = Format(Me.acxCalendar, "Short Date")
> End With


What do you mean by "currentForm" and "currentControl"? If you mean the
form and control that currently have the focus, you could write the same
thing with

Screen.ActiveControl = Format(Me.acxCalendar, "Short Date")

--
Dirk Goldgar, MS Access MVP
www.datagnostics.com

(please reply to the newsgroup)


  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

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 On
HTML code is Off