Click here to Skip to main content
15,909,656 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Timers and Threads Pin
Johan Hakkesteegt17-Aug-09 2:01
Johan Hakkesteegt17-Aug-09 2:01 
GeneralRe: Timers and Threads Pin
rspercy6517-Aug-09 3:12
rspercy6517-Aug-09 3:12 
GeneralRe: Timers and Threads Pin
Johan Hakkesteegt17-Aug-09 3:47
Johan Hakkesteegt17-Aug-09 3:47 
GeneralRe: Timers and Threads Pin
rspercy6517-Aug-09 6:55
rspercy6517-Aug-09 6:55 
GeneralRe: Timers and Threads Pin
Johan Hakkesteegt17-Aug-09 20:09
Johan Hakkesteegt17-Aug-09 20:09 
QuestionAbout Excel Automation ----->Import & Export<-------- Pin
Zizo_nis16-Aug-09 3:45
Zizo_nis16-Aug-09 3:45 
AnswerRe: About Excel Automation ----->Import & Export<-------- Pin
Suresh Suthar16-Aug-09 20:12
professionalSuresh Suthar16-Aug-09 20:12 
Questioncode to find max orderno Pin
AjitMourya16-Aug-09 2:21
AjitMourya16-Aug-09 2:21 
Hi Experts,

I want the code to fetch the last record of customer . I had written the code but it gives error when there is no record found in the table for the requested customer . Please help.

Thanking you,


My Code is ....


rss.Open("select max(orderno) As ono from measurementpant where custno='" & txtcustno.Text & "' AND length<>0 ")
no = Convert.ToInt32(rss.Fields("ono").Value) // here gives error
rss.Close()
rssearch.Open("select * from measurementpant where custno='" & txtcustno.Text & "' AND orderno='" & no & "' ", con, ADODB.CursorTypeEnum.adOpenDynamic, ADODB.LockTypeEnum.adLockPessimistic)
AnswerRe: code to find max orderno Pin
riced16-Aug-09 2:40
riced16-Aug-09 2:40 
AnswerRe: code to find max orderno Pin
Zizo_nis16-Aug-09 2:45
Zizo_nis16-Aug-09 2:45 
GeneralRe: code to find max orderno Pin
AjitMourya16-Aug-09 19:49
AjitMourya16-Aug-09 19:49 
AnswerRe: code to find max orderno Pin
Eddy Vluggen16-Aug-09 3:02
professionalEddy Vluggen16-Aug-09 3:02 
GeneralRe: code to find max orderno Pin
Zizo_nis16-Aug-09 3:50
Zizo_nis16-Aug-09 3:50 
GeneralRe: code to find max orderno Pin
Eddy Vluggen16-Aug-09 5:05
professionalEddy Vluggen16-Aug-09 5:05 
GeneralRe: code to find max orderno Pin
AjitMourya16-Aug-09 19:58
AjitMourya16-Aug-09 19:58 
GeneralRe: code to find max orderno Pin
Eddy Vluggen16-Aug-09 21:10
professionalEddy Vluggen16-Aug-09 21:10 
GeneralRe: code to find max orderno Pin
AjitMourya16-Aug-09 19:30
AjitMourya16-Aug-09 19:30 
AnswerRe: code to find max orderno Pin
Johan Hakkesteegt16-Aug-09 21:01
Johan Hakkesteegt16-Aug-09 21:01 
QuestionVB Sql check and insert if then command Pin
Brav0116-Aug-09 0:56
Brav0116-Aug-09 0:56 
AnswerRe: VB Sql check and insert if then command Pin
Moreno Airoldi16-Aug-09 1:12
Moreno Airoldi16-Aug-09 1:12 
GeneralRe: VB Sql check and insert if then command Pin
Brav0116-Aug-09 2:02
Brav0116-Aug-09 2:02 
AnswerRe: VB Sql check and insert if then command Pin
Paramu197316-Aug-09 20:20
Paramu197316-Aug-09 20:20 
QuestionUnchecking a checked box... Answered,thanks. Pin
Laser Steve15-Aug-09 6:26
Laser Steve15-Aug-09 6:26 
AnswerRe: Unchecking a checked box Pin
Dave Kreskowiak15-Aug-09 6:45
mveDave Kreskowiak15-Aug-09 6:45 
AnswerRe: Unchecking a checked box... Answered,thanks. Pin
Laser Steve15-Aug-09 7:15
Laser Steve15-Aug-09 7:15 

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.