Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 87
Default ID 860 PLEASE HELP

Hi,

Can someone please help me? I have the following showform query in VB:
Goto Reference:="DataTable"
ActiveSheet.ShowDataForm
Application.CommandBars(1).FindControl(Id:=860, recursive:=True).Execute
The problem is the date. When the form comes up if the user mouse clicks
into the cell, the date stays as dd/mm/yy as a space is put in front of it.
However, if the user tabs, there is no space and the date is correct.

I think it may have something to do with the ID 860 specifying the date is
dd/mm/yy. Is there an ID which will bring the date up as dd-mmm-yy?
Any help appreciated! I am dying over here!

Thanks,

Leanne
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default ID 860 PLEASE HELP

Your actually showing the dataform twice.

Sub AA()
Application.Goto Reference:="DataTable"
ActiveSheet.ShowDataForm
End Sub

should be sufficient. If your data doesn't start in one of cells A1:B2,
then you need to name your DataTable to DataBase.

I couldn't reproduce any space problem in a date field. It appears the
form uses the specified short date format to display the data.

--
Regards,
Tom Ogilvy



"Leanne" wrote in message
...
Hi,

Can someone please help me? I have the following showform query in VB:
Goto Reference:="DataTable"
ActiveSheet.ShowDataForm
Application.CommandBars(1).FindControl(Id:=860,

recursive:=True).Execute
The problem is the date. When the form comes up if the user mouse clicks
into the cell, the date stays as dd/mm/yy as a space is put in front of

it.
However, if the user tabs, there is no space and the date is correct.

I think it may have something to do with the ID 860 specifying the date is
dd/mm/yy. Is there an ID which will bring the date up as dd-mmm-yy?
Any help appreciated! I am dying over here!

Thanks,

Leanne



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



All times are GMT +1. The time now is 12:37 PM.

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"