Click here to Skip to main content
16,007,760 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Problem in opening a textfile in excel using vb.net [modified] Pin
Madang18-Mar-08 21:53
Madang18-Mar-08 21:53 
GeneralRe: Problem in opening a textfile in excel using vb.net Pin
Mycroft Holmes19-Mar-08 1:07
professionalMycroft Holmes19-Mar-08 1:07 
GeneralRe: Problem in opening a textfile in excel using vb.net Pin
Dave Kreskowiak19-Mar-08 4:28
mveDave Kreskowiak19-Mar-08 4:28 
Questionhow do I determine which button was clicked on a prevoius form to access the form I am currently working on? Pin
Mr Oizo18-Mar-08 21:18
Mr Oizo18-Mar-08 21:18 
AnswerRe: how do I determine which button was clicked on a prevoius form to access the form I am currently working on? Pin
Mycroft Holmes18-Mar-08 21:52
professionalMycroft Holmes18-Mar-08 21:52 
GeneralRe: how do I determine which button was clicked on a prevoius form to access the form I am currently working on? Pin
Mr Oizo18-Mar-08 22:41
Mr Oizo18-Mar-08 22:41 
AnswerRe: how do I determine which button was clicked on a prevoius form to access the form I am currently working on? Pin
Tom Wright19-Mar-08 8:58
Tom Wright19-Mar-08 8:58 
QuestionHow to retrieve the data by Date/Time Data Type from a Table ? Pin
phowarso18-Mar-08 20:07
phowarso18-Mar-08 20:07 
My table has 4 fields that Name, Age, Date and Town. Data can add and delete. Data from Date field are displayed onto the ComboBox by DISTINCT SQL keyword. I wanna retrieve the data from Name, Age and Town by choosing a data from ComboBox that contains date data. I will display my data onto a DataGridView. When I run my project no data display noto the DataGridView. But I get for 18/3/08, error format 12:00:00AM is displayed in Message box and for other date I get correct format.
My code is following...

Private Sub cbbDate_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles cbbDate.SelectedIndexChanged
On Error Resume Next
Dim dt As Date
cbbDate.Text = cbbDate.SelectedItem
If Not cbbDate.Text = "All Date" Then
dt = CDate(cbbDate.SelectedItem).ToString("M,d,yyyy")
MsgBox(dt)
DisplayReport("SELECT * FROM tblSave WHERE Date=" & dt & " ORDER BY Name ASC")
Else
ShowAll()
End If

Date Field Format in the table is 'Short Date'. ( month, day, year)
Date format from ComboBox is ( day, month, year).
AnswerRe: How to retrieve the data by Date/Time Data Type from a Table ? Pin
Christian Graus18-Mar-08 20:19
protectorChristian Graus18-Mar-08 20:19 
Generalproblem with int32 field and long for dataGrid Pin
AAGTHosting18-Mar-08 17:50
AAGTHosting18-Mar-08 17:50 
GeneralRe: problem with int32 field and long for dataGrid Pin
Mycroft Holmes18-Mar-08 21:58
professionalMycroft Holmes18-Mar-08 21:58 
GeneralRe: problem with int32 field and long for dataGrid Pin
Dave Kreskowiak19-Mar-08 1:42
mveDave Kreskowiak19-Mar-08 1:42 
GeneralRe: problem with int32 field and long for dataGrid Pin
AAGTHosting19-Mar-08 7:11
AAGTHosting19-Mar-08 7:11 
GeneralRe: problem with int32 field and long for dataGrid Pin
AAGTHosting19-Mar-08 7:21
AAGTHosting19-Mar-08 7:21 
GeneralSystem.Data.DataRow View Error in Combo Box Pin
AAGTHosting18-Mar-08 17:34
AAGTHosting18-Mar-08 17:34 
GeneralRe: System.Data.DataRow View Error in Combo Box Pin
Mycroft Holmes18-Mar-08 22:00
professionalMycroft Holmes18-Mar-08 22:00 
Generalhelp display time only in vb form from sql dateTime (UDT time) Pin
AAGTHosting18-Mar-08 13:22
AAGTHosting18-Mar-08 13:22 
GeneralRe: help display time only in vb form from sql dateTime (UDT time) Pin
Mycroft Holmes18-Mar-08 22:04
professionalMycroft Holmes18-Mar-08 22:04 
GeneralIOLECommandTarget Interop and Optical Zoom in WebBrowser Control Pin
TerriTop18-Mar-08 12:23
TerriTop18-Mar-08 12:23 
QuestionI have a VB.Net Windows application Pin
indian14318-Mar-08 9:55
indian14318-Mar-08 9:55 
GeneralRe: I have a VB.Net Windows application Pin
AliAmjad18-Mar-08 10:15
AliAmjad18-Mar-08 10:15 
GeneralRe: I have a VB.Net Windows application Pin
Dave Kreskowiak18-Mar-08 10:27
mveDave Kreskowiak18-Mar-08 10:27 
GeneralRe: I have a VB.Net Windows application Pin
Dave Kreskowiak18-Mar-08 10:25
mveDave Kreskowiak18-Mar-08 10:25 
GeneralRe: I have a VB.Net Windows application Pin
indian14318-Mar-08 20:52
indian14318-Mar-08 20:52 
GeneralPublic set in VB 6.0 Pin
leaveu18-Mar-08 9:30
leaveu18-Mar-08 9:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.