Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB Databases Basics
|
VB Databases Basics Beginning-level VB coding questions specific to using VB with databases. Issues not specific to database use will be redirected to other forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB Databases Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 23rd, 2005, 12:29 AM
Authorized User
 
Join Date: Aug 2005
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to Calverstine Send a message via MSN to Calverstine
Default Integrating SQL with visual basic function, how??

hello everyone

anyway, i am working on a project where it requires me to find all the record from a table to display the record which, is expired from the current date

that means i would like to find the differences between between date retrieved from a table and date[current date] using the visual basic "Date" function ..

how do i do it, anyone has any idea that could help me???? :confused:

e.g. monthly.RecordSource = "SELECT * FROM Mmain WHERE Term='monthly'
AND " & DateDiff("d", &" MAAmain.[Date1] " &, d1) & " >31"
THANKSSS

is there any other method i can find difference too?? feel free to drop your suggestion while i can try on it..thanks [hehe]
[p/s: i am using adodc to retrieve data]

from Calverstine
my email






Similar Threads
Thread Thread Starter Forum Replies Last Post
Integrating Crystal Reports 10 in Visual Basic 6 vava2300 VB Components 2 December 28th, 2006 09:57 AM
How to use Visual Basic 6 connect to SQL server? mytreasure23 SQL Server 2000 2 August 31st, 2006 05:02 AM
excel's yield function equivalent in visual basic thisisprem Beginning VB 6 2 April 25th, 2006 02:06 AM
Integrating SQL with visual basic function, how?? Calverstine VB How-To 0 October 23rd, 2005 12:27 AM
SQL and Visual Basic mytreasure23 SQL Server 2000 1 November 9th, 2004 03:26 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.