Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default display a timer while an ODBDC connection opens.

My code is:

Dim strDate2 As String
TextBox1 = Val("_" & Format(Second(Time), "00"))

I have attempted to populate Textbox1 with workbook, on open and with form,
initialize. All I get is 0 or the literal string

Also, as soon as the connection opens I want to close the form.

Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,934
Default display a timer while an ODBDC connection opens.

The underbar character is interfering with the Val function's ability to
show the number (because it is not a number and Val stops evaluating numbers
at the first non-digit that is not a US decimal point). Why are you even
using the Val function? Just do this...

TextBox1 = Format(Second(Time), "_00")

--
Rick (MVP - Excel)


"wynnyderpooh" wrote in message
...
My code is:

Dim strDate2 As String
TextBox1 = Val("_" & Format(Second(Time), "00"))

I have attempted to populate Textbox1 with workbook, on open and with
form,
initialize. All I get is 0 or the literal string

Also, as soon as the connection opens I want to close the form.

Thanks!


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default display a timer while an ODBDC connection opens.

Thanks Rick,
I changed the textbox to a label. I need the label to display an active
timer. I am attempting to use the code:

lblTmr = Format(Second(Time), "00")
Application.Wait TimeValue("00:00:01") this is locking up
lblTmr = lblTmr + TimeValue("00:00:01") this is not working

Suggestions?

Thanks again,
Jim

"Rick Rothstein" wrote:

The underbar character is interfering with the Val function's ability to
show the number (because it is not a number and Val stops evaluating numbers
at the first non-digit that is not a US decimal point). Why are you even
using the Val function? Just do this...

TextBox1 = Format(Second(Time), "_00")

--
Rick (MVP - Excel)


"wynnyderpooh" wrote in message
...
My code is:

Dim strDate2 As String
TextBox1 = Val("_" & Format(Second(Time), "00"))

I have attempted to populate Textbox1 with workbook, on open and with
form,
initialize. All I get is 0 or the literal string

Also, as soon as the connection opens I want to close the form.

Thanks!



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
File opens, worksheet does not display parker.moran Excel Discussion (Misc queries) 4 May 13th 08 10:37 PM
XL file opens but does not display BrianE Excel Discussion (Misc queries) 3 July 18th 07 01:16 AM
how do I display a automatically message when excel opens? Prakash Excel Discussion (Misc queries) 2 March 23rd 06 01:03 PM
Display a countdown timer HAL Excel Worksheet Functions 3 November 12th 04 07:03 PM
Excel ADO connection opens read-only instance of opened Excel Serge L Excel Programming 6 September 23rd 03 07:39 PM


All times are GMT +1. The time now is 10:16 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"