syntax-error

Inserting data from VB.NET to MS Access: Syntax error in INSERT INTO statement [duplicate]

…衆ロ難τιáo~ 提交于 2019-11-28 14:36:07
This question already has an answer here: Syntax error in INSERT INTO Statement when writing to Access 1 answer I'm using Microsoft Visual Studio 2013 and im trying to make a registration form for my account database using VB.NET. This is my code so far: Private Sub btnRegistery_Click(sender As Object, e As EventArgs) Handles btnRegistery.Click Dim usernme, passwrd As String usernme = txtUsernm.Text passwrd = txtpasswrd.Text Dim myconnection As OleDbConnection Dim constring As String = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Users\hasan\Documents\Visual Studio 2012\Projects\hasan

Python - I can't see my what my error is because the window disappears immediately

余生颓废 提交于 2019-11-28 14:29:43
I am pretty new to Python and I have been pretty annoyed with this problem. I am not sure if this matters, but I run my .py file with Python 2.7.6 with python installed on my computer, not using it on any online thing or other program. Every time I come across an error, my program works fine until it comes to the error, but the window disappears right before I can possibly read whatever the error said it was... Anyways, I haven't been able to find out what is wrong with my programming, and I am tired of guessing and guessing what is wrong. How can I extend the time so I can read the error

SyntaxError: Non-UTF-8 code starting with '\\x90' in file C:\\Python36\\python.exe on line 1, but no encoding declared

牧云@^-^@ 提交于 2019-11-28 14:19:48
SyntaxError: Non-UTF-8 code starting with '\x90' in file C:\Python36\python.exe on line 1, but no encoding declared I don't understand why it shows me that when I want to open the interpreter. Can someone help me please? Ok, it's a wrong value for PYTHONSTARTUP which was asking me a problem. Thank you all ! Python 3 assumes scripts are saved with UTF-8 encoding. The script being executed (from PYTHONSTARTUP?) is not UTF-8-encoded. If you know the encoding, you can add it to the top of the script with: #coding:cp1252 (or whatever the encoding is). Or just re-save the script in UTF-8. See also

syntax error, unexpected T_GOTO, expecting T_STRING

妖精的绣舞 提交于 2019-11-28 14:12:58
I moved my website to another host. The previous php version is 5.2 and now is 5.3 When I login to my website, it shows the error: Parse error: syntax error, unexpected T_GOTO, expecting T_STRING in /xx/xx/xx/xx on line xx Following is the code, the first line is the error line: function goto($URL= "Back",$Target="self") //the error line { if ($URL == "Back") { echo "<HTML>\n<HEAD>\n<TITLE> untitle </TITLE>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset={$this -> Charset}\">\n</HEAD>\n<BODY>\n"; echo "<Script Language=\"Javascript\">history.go(-1)</Script>"; echo "\n</body><

MySQL error - “You have an error in your SQL syntax”

Deadly 提交于 2019-11-28 13:55:58
The error message I got: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''word','group','selfnote') VALUES ('item','a','note to self')' at line 1 The PHP code is: $toq="INSERT INTO articles ('word','group','selfnote') VALUES ('$ttle','$wrdr','$snote')"; I was trying to find solutins, but they didn't seem to work as echoing gives: INSERT INTO articles ('word','group','selfnote') VALUES ('item','a','note to self') which seems nice to me. What is the problem? Use backticks ` instead of quotes ' to escape names.

Untraceable errors in XHTML templates caused by a missing space between attributes among (X)HTML tags

落花浮王杯 提交于 2019-11-28 13:05:42
问题 Have a simple question. Let's consider the following tag. <h:inputText id="text" value="#{bean.value}"/> If it is mistakenly written as follows. <h:inputText id="text"value="#{bean.value}"/> Please notice that there is no space between the id and the value attributes in this case. This is expected to be a parse error that should occur during parsing of the XHTML file possibly throwing an appropriate exception. If it were to happen, absolutely nothing exceptional would be reported. No errors

Why doesn't my equality comparison using = (a single equals) work correctly in Java?

梦想的初衷 提交于 2019-11-28 13:00:15
问题 I have a syntax error in the following line. However I can't understand what is the reason of this error. if (address1.compareTo(address2) = 1) System.out.println(address1 + " is greater than " + address2); What I want to achieve is printing proper message if and only if compareTo returns 1 . 回答1: You should compare ( == ) instead of assigning ( = ). It can be very dangerous! To avoid such situations you can use Yoda notation so instead of comparing address1.compareTo(address2) == 1 You can

Can't find the error: VLOOKUP not returning the value

◇◆丶佛笑我妖孽 提交于 2019-11-28 12:47:41
I am working with an excel file and I am trying to "map" some values with the vLookUp function. The first parameter of the vLookUp function is giving me headaches: The function works with certains values (typed by hand in a text format)...but doesnt work with pre-generated values (the sames ones...but generated from an ERP system..). I checked to make sure that I was looking for "same nature" values ( text vs text ) ...but I can't find out why the first 3 values (typed by hand) are fine... but the last 3 (pre generated) gives me a #N/A error: It has to be a difference of "format" ..but I can't

Sqlite Exception, syntax error

不想你离开。 提交于 2019-11-28 12:43:49
i'm still learning Android development, And i have a problem creating an sqlite database table. here is a part of my code : ` private static final String CREATE_ADS_PICTURE = "CREATE TABLE " + AdsBDD.TABLE_ADS_PICTURE + "(" + AdsBDD.ID_PICS + " INTEGER PRIMARY KEY AUTOINCREMENT ," + AdsBDD.AD_ID + " INTEGER NOT NULL," + AdsBDD.PICTURE + " TEXT," + AdsBDD.FOLDER + " TEXT," + AdsBDD.ORDER_NO + " INTEGER NOT NULL);"; private static final String CREATE_AGENCES = "CREATE TABLE " + AgencesBDD.TABLE_AGENCES + "(" + AgencesBDD.ID + " INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL," + AgencesBDD.GROUP + "

f-strings giving SyntaxError?

你说的曾经没有我的故事 提交于 2019-11-28 12:18:04
I am getting an error message with my Atom reader here, where it is suggesting the first print.(f"message") is delivering an error: File "/Users/permanentmajority/Desktop/Coding/learnpythonbook.py", line 75 print(f"Let's talk about {my_name}.") ^ SyntaxError: invalid syntax [Finished in 0.077s] Code: my_name = 'Zed A. Shaw' my_age = 35 # not a lie my_height = 74 # inches my_weight = 180 #lbs my_eyes = 'Blue' my_teeth = 'White' my_hair = 'Brown' print(f"Let's talk about {my_name}.") print(f"He's {my_height} inches tall.") print(f"He's {my_weight} pounds heavy.") print("Actually that's not too