|
he gives me error when i tried to enter 2 values
this is the error
syntax error (missing operator) in query expression '7/2/2007Vodafone'.
|
|
|
|
|
magedhv wrote: syntax error (missing operator) in query expression '7/2/2007Vodafone'
It looks like you dont have the two fields separated - shouldnt it be '7/2/2007','Vodafone'...
Also, the first is a date field, IIRC date fields for Jet databases should be enclosed by # not quotes.
|
|
|
|
|
plz write 4 me the code of the date to try
thanks i appreciate your efforts
|
|
|
|
|
Just remember this...
for text (string) variables, enclose data in quotes - like 'Vodafone'
for number variables, just the value will do
for date variables, enclose data with # - like #7/2/2007#
and between each field, you should have a comma.
Hope this helps.
|
|
|
|
|
do u mean like that
dim x as string
x = "'" # DateTimePicker1.Value # "'"
if that's what u mean the visual basic underline the last line (x = "'" # DateTimePicker1.Value # "'" )
plz try to write the whole code and note that the same code i use it with the same string in other form and it worked well
|
|
|
|
|
magedhv wrote: x = "'" # DateTimePicker1.Value # "'"
Thats not what I mean...
try this:
x = "#" & DateTimePicker1.Value & "#"
|
|
|
|
|
Ignore ALL the other replies you've gotten in this thread. They're all crap.
Drop all this string concatenation garbage and do it the correct way with a parameterized query. See this article[^] by Colin Angus Mackay for more information as to what they are and why your shooting yourself in the foot doing it your way. You're actaully making is harder on yourself by building a string for your parameters.
|
|
|
|
|
could u plz tell me what should i do because i read this topic but i didn't understand what to do
so if u have any idea about what to do simply tell me
and thanks i appreciate ur efforts
|
|
|
|
|
I did "simply" tell you. You're building an SQL query by appending multiple strings together. This introduces the opportunity for a lot of bugs and security holes into your code.
Read the article I gave you a link for and about half way down, it'll explain what a parameterized query is and how to put it together to solve most of your security and readability problems.
|
|
|
|
|
Hi,
I'd like to know how i can get the mouse position in an image loaded into a picturebox. (The Image is stretched) If i use MousePosition i get the position of the mouse on the form, and i want to get the mouseposition on the image loaded into the picturebox. Again, the image is stretched so a x value of 1000 could be a x value of 1500 in real.
Help, please?
--Zaegra--
|
|
|
|
|
To do this, you cannot rely on the picturebox painting the picture for you. You have to supply the code to paint the picture yourself. This is because in order to map the mouse point coordinates in the picture box to the image its displaying, you MUST know the scaling values being used to scretch the image. Since the picturebox doesn't expose these to you when it draws the image, you have to calculate the scaling values yourself.
|
|
|
|
|
Wew, seems pretty hard I have no idea on how to calculate those values, do you have any suggestions?
--Zaegra--
|
|
|
|
|
how can i check whether .net or sqlserver was installed or not on a machine where i can run my msi??
so which dll(s) or file(s), i have to include in the setup project??
Beginner developer
|
|
|
|
|
You may want to look at Google for this[^] article for an example. You can check for the .NET Framework, but checking for SQL Server is pointless because the server may be running on an entirely different machine.
|
|
|
|
|
How to implement the webservice feature in vb 6.0
GIRISH
|
|
|
|
|
You don't. VB6 doesn't support writing a web service.
|
|
|
|
|
I have a cheap bar code scanner which I use a serial interface with and accessibility options (serialkeys).
I have a USB cable for the scanner but I have absolutely no idea how to program this so that I can input data from the bar code scanner.
Can anyone help?
Thanks
Wayne
|
|
|
|
|
Usually the device vendors provide RS232 emulation (or suitable library to communicate via USB), refer to you bar code scanner documentation.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
Hi ,
simply open any Editor ex: Notepad
scan the Light Of your Bar code scanner over any Barcode like Any book or Item, The SerialNo or the Code will be printed on notepad .MAtch this number with the one written under the barcode to verify
Regards & wishes
Navneet Hegde
Nashik(City Of Pilgrimage)
Develop2Program & Program2Develop
|
|
|
|
|
Usually, barcode scanners give you the data through the keyboard, just like the user typed it. You'll have to consult the documentation on the scanner to see if this is true. Once you determine that, you can plan your code.
|
|
|
|
|
I’m USING VB 2005 to write web forms. In the tutorial it tells me to display the page in design view and then select DOCUMENT from the object list box at the top of the property window, then find the DefaultClientScript property and change it to VBScript. The problem being is that I can not find this property.
Help please, as I'm new to the ASP.NET environment.
Regards
Graeme Guildford.
I am always greteful for any help!
|
|
|
|
|
Try asking in the ASP.NET Forum[^].
The tutorial is either for an older verision of ASP.NET (.NET Framework 1.1 or lower), or is just plain wrong. There is no property called "DefaultClientScript" that I can find. Then again, I don't do any ASP.NET work, so I could easily be wrong.
|
|
|
|
|
Hi,
I want to know the practicle diffrence between 2-tier architecture and 3-tier architecture.Also the advantages and disadvantages of both.
Pls send me asap.
Thanks and Regards.
GIRISH
|
|
|
|
|
n-tier is the logical seperation of your code where n is the number of layers. By seperating your code into tiers/layers you are making it potentially more maintainable, more flexable and more scalable.
That all depends on if you do a good job of it or not though :P
Here's an ok, if a bit preachy, article:
http://www.15seconds.com/issue/011023.htm[^]
|
|
|
|
|
You have been here long enough to have read the forum guidelines. The highlights:
1. No text speak.
2. Using words like 'help' 'urgent' or 'asap' are considered rude.
3. Some of your questions are basic and would be answered by using this wonderful thing called Google.
______________________
stuff + cats = awesome
|
|
|
|