.NET Logo
Welcome Guest Search | Active Topics | Members | Log In | Register

รบกวนดูให้หน่อย หาค่าที่มากสุด มันผิดจากไหนเอ๋ย Options · View
sucomsci
Posted: Wednesday, August 20, 2008 5:52:47 PM

Rank: มือฝึกหัด
Groups: Member

Joined: 7/7/2008
Posts: 4
Location: BKK

 

 

รบกวนดูให้หน่อยครับว่ามันผิดจากจุดไหน แต่จากการรันใน sql ผ่าน แต่พอนำมารวมกับ  txtCode.text'%  เออเร่อ แต่ในใจผมผมว่ามันผิดจากช่วง code like txtCode.text'%'

sqluser ="Select Max(Code)Code FROM "+ sTable + " WHERE SubStr(Code,2)<>'999' and code like txtCode.text'%' ";

รบกวนช่วยดูให้หน่อยครับ

 

sucomsci
Posted: Thursday, August 21, 2008 10:47:05 AM

Rank: มือฝึกหัด
Groups: Member

Joined: 7/7/2008
Posts: 4
Location: BKK

ได้และครับ

sqluser ="Select Max(Code)Code FROM "+ sTable + " WHERE SubStr(Code,2)<>'999' and code like '"+ codein +"%\'";

 

 

 

abcomp01
Posted: Saturday, August 23, 2008 7:01:04 PM

Rank: มือพระกาฬ
Groups: Member

Joined: 4/22/2008
Posts: 18
Location: thailand

อะน่ะถามเองตอบเอง

Users browsing this topic
Guest


Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

YAFVision Theme Created by Jaben Cargman (Tiny Gecko)
Powered by Yet Another Forum.net version 1.9.1.8 (NET v2.0) - 3/29/2008
Copyright © 2003-2008 Yet Another Forum.net. All rights reserved.


Sponsored by