| | |
Selection Problem
![]() |
•
•
Join Date: Sep 2008
Posts: 29
Reputation:
Solved Threads: 1
•
•
•
•
Hi,
This is normally due to difference in Data-types..
Post your Select statement here..
Regards
Veena
Thanks For Ur Replay
Statement for Selection
rs.Open "Select * from employee where emp_code='" & ListView2.SelectedItem.Text & "'", con, adOpenDynamic, adLockOptimistic
•
•
Join Date: Sep 2008
Posts: 29
Reputation:
Solved Threads: 1
•
•
•
•
Hi,
I guess, Emp_Code is a Numeric Field in Database..
Dont Wrap it with Single quotes:
rs.Open "Select * from employee where emp_code=" & Val(ListView2.SelectedItem.Text )& "", con, adOpenDynamic, adLockOptimistic
Regards
Veena
No... The emp_code is "Text" like a code as (00A001)
•
•
Join Date: Sep 2008
Posts: 29
Reputation:
Solved Threads: 1
•
•
•
•
Hi,
What all is populated in the List View..?
May be, you want to refer to a SubItem of the list view...(instead of seleted item's text..)
Check how is "rs" declared..?
Connection object is open..
Regards
Veena
Ok.... But the same package running for Windows XP, win98 system can`t run.... this is find out before 2 hours back...
Thanks & Regards
Anandh
•
•
Join Date: Sep 2008
Posts: 29
Reputation:
Solved Threads: 1
•
•
•
•
Hi,
What all is populated in the List View..?
May be, you want to refer to a SubItem of the list view...(instead of seleted item's text..)
Check how is "rs" declared..?
Connection object is open..
Regards
Veena
Hi... Veena
U have any idea abt this Selection process...
![]() |
Similar Threads
- selection problem in a month loop (ASP)
- Combo box selection problem (VB.NET)
- Some help needed with Selection Sort in java, Please!! (Java)
- IE causing problem with Win Explorer Display (Web Browsers)
- Problem With installing Sagem 800 Modem (Windows NT / 2000 / XP)
- Problem with B's Recorder Gold5 (Windows Software)
- Enemy Storage/Selection file (Java)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: Option Slection
- Next Thread: Can I restrict email sent in Outlook without using Exchange?
| Thread Tools | Search this Thread |
* 6 2007 access activex add age basic beginner birth bmp calculator cd cells.find click client code college connection connectionproblemusingvb6usingoledb creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit excel excelmacro file filename form header iamthwee image inboxinvb internetfiledownload listbox listview liveperson login looping microsoft movingranges number objectinsert open oracle password prime program prompt range-objects readfile reading remotesqlserverdatabase report save search sendbyte sites sql sql2008 sqlserver subroutine tags time urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web windows





