borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2010 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (store var in collection or in array)Next Topic (Generic Statement for Linking CheckBoxes) New Topic New Poll Post Reply
AndreaVB Forum : VB General : checking several columns to do data report..
Poster Message
cempaka
Level: Big Cheese

Registered: 03-03-2009
Posts: 19

Ads by Lake Quincy Media
icon checking several columns to do data report..

hello...

i am doing a report using data report..
the user can search the criteria that he/she wants..
what am i doing, there are 3 options, 1 checkbox..

the options, that is only one can selected...they are MiliNo, Name, and Door...

and the check box is date..

so that user can have one or two options (with date)...

how can i select two columns in the table?
why these codings doesnt work?
it only select the date only..not the door..
If CheckDate.Value = vbChecked And cboDoor <> "" Then
    Unload dedb
    Load dedb
    dedb.Commands(1).CommandText = "SELECT * FROM DailyAccess " & _
                                    "WHERE Date_In = cvdate ('" & DTPicker1 & "') AND Door = '" & cboDoor & "'"
                                    
    DataReport1.Orientation = rptOrientLandscape
    DataReport1.Refresh
    DataReport1.Show
    End If

iam using VB6 with database from ms access..

and one more thing, can i empty the DTPicker?
thanks..

18-04-2009 at 06:32 AM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : VB General : checking several columns to do data report..
Previous Topic (store var in collection or in array)Next Topic (Generic Statement for Linking CheckBoxes) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2010 Andrea Tincaniborder