473,396 Members | 2,013 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

DTPicker control in VB6

i m new to Date picker control in vb.i m connecting vb with sql server 2005.
i want that
i should select a date from date picker and put a sql query using that date in VB.
i.e. "select paycode from Table_name where date=' " &dtpicker1.value " '
how i should do this.so that relevent records get displayed in MSHFlexgrid control
Jul 12 '07 #1
2 5218
hariharanmca
1,977 1GB
i m new to Date picker control in vb.i m connecting vb with sql server 2005.
i want that
i should select a date from date picker and put a sql query using that date in VB.
i.e. "select paycode from Table_name where date=' " &dtpicker1.value " '
how i should do this.so that relevent records get displayed in MSHFlexgrid control

use Format(value,<Date Format>)
Jul 12 '07 #2
Killer42
8,435 Expert 8TB
I highly recommend checking out the Access and VBA Tutorials thread over in the Access forum (yes, I know you said SQL Server but it's still relelvant). There are entries there which describe the issues around the use of date/time fields, including delimiters ( # -vs- ' ) and date formats.
Jul 12 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: someone | last post by:
Hi, We are encountering a problem with the DTPicker. This is the situation: We have a DTPicker-control on a VB6 Active-X. The Active-X is used on a .NET winform. the problem: The .Net...
0
by: Andreas Belitz | last post by:
Hello, in my project, i use a form with Microsoft's Dte Picker Control (MSComCtl2.DTPicker.2). This control is linked up to a date field of a table. When i open the form, the control always...
0
by: Nectar Plaitis | last post by:
Hello I'm using the DTPicker control in my aspx page, (eg. <OBJECT id="dStart" style="Z-INDEX: 139; ...." codeBase="MSCOMCT2.CAB" classid="clsid:20DD1B9E-87C4-11D1-8BE3-0000F8754DA1" VIEWASTEXT...
1
by: Janaka Wijayakoon | last post by:
Hi Everyone, I have added a DTPicker control to my web form. Its working fine with all the work station where that control is registered (Computers where vb runtime is installed) and dipayls a...
11
by: Killer42 | last post by:
Hi all. Short version: DtPicker goes strange when .Enabled changed in VBA code, looking for solution or good workaround. Looooong version: Those of you who have been following various threads...
8
by: Sid666 | last post by:
Hi, everyone I'm building an Access DB system using VBA. I have a ActiveX DTPicker so the user can select a date. This date is put in another textbox that is bound to a table. I do this because...
5
by: Robi | last post by:
I have a form which has a dtPicker control with a checkbox. The user checks or unchecks the box to indicate whether or not the date should be utilized. My problem is that the user would prefer to...
2
by: deviii | last post by:
hello vb experts i want some details which r stored in database . and i want to display them based on the value selected by the DTPicker control.how i can access it? i want to display that...
2
by: blees10 | last post by:
Hey Guys, I have an issue with a dtpicker field in one of my forms. I developed this form using Access 2003 and everything works fine. Recently, I've been asked to deploy this database to...
1
by: venkatanarasimhaa | last post by:
Hi, I am developing a simple application in VB. I have one DTPicker on my form. If the value of DTPicker is not mindate of DTPicker, It should not be allow us to enter any value earlier than...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.