Results 1 to 6 of 6

Thread: datepicker problem

Hybrid View

  1. #1
    Discovering Life Siddharth Rout's Avatar
    Join Date
    Feb 2005
    Location
    Mumbai, India
    Posts
    12,001

    Re: datepicker problem

    Initialize then in the form load...

    vb Code:
    1. Private Sub Form_Load()
    2.     With Me.pump
    3.         .AddItem "P1--01"
    4.         .AddItem "P3--03"
    5.         .AddItem "P4--04"
    6.         .AddItem "P5--05"
    7.     End With
    8.    
    9.     DTP1_date.Value = ??? '<~~ Set Default Values Here
    10.     DTP1_hour.Value = ??? '<~~ Set Default Values Here
    11.     DTP2_date.Value = ??? '<~~ Set Default Values Here
    12.     DTP2_hour.Value = ??? '<~~ Set Default Values Here
    13.    
    14.     Me.DataGrid.Visible = True
    15. End Sub

    Also what is createDummyBase sub() ?
    A good exercise for the Heart is to bend down and help another up...
    Please Mark your Thread "Resolved", if the query is solved


    MyGear:
    ★ CPU ★ Ryzen 5 5800X
    ★ GPU ★ NVIDIA GeForce RTX 3080 TI Founder Edition
    ★ RAM ★ G. Skill Trident Z RGB 32GB 3600MHz
    ★ MB ★ ASUS TUF GAMING X570 (WI-FI) ATX Gaming
    ★ Storage ★ SSD SB-ROCKET-1TB + SEAGATE 2TB Barracuda IHD
    ★ Cooling ★ NOCTUA NH-D15 CHROMAX BLACK 140mm + 10 of Noctua NF-F12 PWM
    ★ PSU ★ ANTEC HCG-1000-EXTREME 1000 Watt 80 Plus Gold Fully Modular PSU
    ★ Case ★ LIAN LI PC-O11 DYNAMIC XL ROG (BLACK) (G99.O11DXL-X)
    ★ Monitor ★ LG Ultragear 27" 240Hz Gaming Monitor
    ★ Keyboard ★ TVS Electronics Gold Keyboard
    ★ Mouse ★ Logitech G502 Hero

  2. #2

    Thread Starter
    Junior Member
    Join Date
    Mar 2009
    Posts
    30

    Re: datepicker problem

    Quote Originally Posted by koolsid View Post
    Initialize then in the form load...

    vb Code:
    1. Private Sub Form_Load()
    2.     With Me.pump
    3.         .AddItem "P1--01"
    4.         .AddItem "P3--03"
    5.         .AddItem "P4--04"
    6.         .AddItem "P5--05"
    7.     End With
    8.    
    9.     DTP1_date.Value = ??? '<~~ Set Default Values Here
    10.     DTP1_hour.Value = ??? '<~~ Set Default Values Here
    11.     DTP2_date.Value = ??? '<~~ Set Default Values Here
    12.     DTP2_hour.Value = ??? '<~~ Set Default Values Here
    13.    
    14.     Me.DataGrid.Visible = True
    15. End Sub

    Also what is createDummyBase sub() ?
    as i said the .value property of dtpicker doesnot exist.
    i do not want to pass the value of the datepicker with code but when i chose the date and time from the datepickers in the form load.
    the createdummybase is a sub which creates a .mdb database.
    the createdummybase i want to take the arguments of the selected date and time of the datepickers and from the combobox called pump.how can i do that ?thx

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width