sql error
If you need help with a project or need to know how to do something specific in VB.NET then please ask your questions in here.
Forum rules
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
8 posts
Page 1 of 1
Hello,
can anyone tell me why this don't work?
i get as error can't find an column with the name: cast.month & cast.year
but is not working.
thank you
can anyone tell me why this don't work?
i get as error can't find an column with the name: cast.month & cast.year
Code: Select all
it must select the current month and date to show the cast userSQLcommand.CommandText = "SELECT DISTINCT cast.id,cast.name Relation FROM cast LEFT JOIN address ON cast.description=address.id LEFT JOIN users ON cast.by=users.id where cast.month='" & Date.Today.Month & "' and cast.year='" & Date.Today.Year & "'"
but is not working.
thank you
visit us on:
http://www.softpedia.com/get/System/Lau ... -Run.shtml
Check it out ! http://www.softpedia.com/publisher/I-A- ... 90017.html
Check it out ! http://www.softpedia.com/get/Desktop-En ... lock.shtml
http://www.softpedia.com/get/System/Lau ... -Run.shtml
Check it out ! http://www.softpedia.com/publisher/I-A- ... 90017.html
Check it out ! http://www.softpedia.com/get/Desktop-En ... lock.shtml
hello
even this code has the same error
why??
the tables does exist in the database
even this code has the same error
Code: Select all
no such column with the name cn.month and cn.yearSQLcommand.CommandText = "SELECT cn.id, cn.type, cl.name FROM loananddebt AS cn JOIN addresspayee as cl ON cn.description = cl.id WHERE cn.month ='October' AND cn.year ='2013'"
why??
the tables does exist in the database
visit us on:
http://www.softpedia.com/get/System/Lau ... -Run.shtml
Check it out ! http://www.softpedia.com/publisher/I-A- ... 90017.html
Check it out ! http://www.softpedia.com/get/Desktop-En ... lock.shtml
http://www.softpedia.com/get/System/Lau ... -Run.shtml
Check it out ! http://www.softpedia.com/publisher/I-A- ... 90017.html
Check it out ! http://www.softpedia.com/get/Desktop-En ... lock.shtml
go into the table in the database and check if you have the rows in that corresponding table.
you might say the table exists, but does the rows in the table exist?
you might say the table exists, but does the rows in the table exist?
My name is Tom | Visit my blog where I post new content every day! Tom's Daily Blog | MineCraft is awesome!
yes it does exists #smashapps
You do not have the required permissions to view the files attached to this post.
visit us on:
http://www.softpedia.com/get/System/Lau ... -Run.shtml
Check it out ! http://www.softpedia.com/publisher/I-A- ... 90017.html
Check it out ! http://www.softpedia.com/get/Desktop-En ... lock.shtml
http://www.softpedia.com/get/System/Lau ... -Run.shtml
Check it out ! http://www.softpedia.com/publisher/I-A- ... 90017.html
Check it out ! http://www.softpedia.com/get/Desktop-En ... lock.shtml
#Dummy1912
Could it be you're using the wrong case? Like the table could be capitals but you're calling it using lowercase? I don't have too much information so I can't help too much
Could it be you're using the wrong case? Like the table could be capitals but you're calling it using lowercase? I don't have too much information so I can't help too much
My name is Tom | Visit my blog where I post new content every day! Tom's Daily Blog | MineCraft is awesome!
as you can see #smashapps the month and year are lowercase
so i don't know why it don't work
so what else do you need to help??
so i don't know why it don't work
so what else do you need to help??
visit us on:
http://www.softpedia.com/get/System/Lau ... -Run.shtml
Check it out ! http://www.softpedia.com/publisher/I-A- ... 90017.html
Check it out ! http://www.softpedia.com/get/Desktop-En ... lock.shtml
http://www.softpedia.com/get/System/Lau ... -Run.shtml
Check it out ! http://www.softpedia.com/publisher/I-A- ... 90017.html
Check it out ! http://www.softpedia.com/get/Desktop-En ... lock.shtml
add ' ' to the column names
My name is Tom | Visit my blog where I post new content every day! Tom's Daily Blog | MineCraft is awesome!
its okay got it working
seems i got a little nerner;
seems i got the column name month_
so thats why
so thanks anyway #smashapps
and sorry :(
seems i got a little nerner;
seems i got the column name month_
so thats why
so thanks anyway #smashapps
and sorry :(
visit us on:
http://www.softpedia.com/get/System/Lau ... -Run.shtml
Check it out ! http://www.softpedia.com/publisher/I-A- ... 90017.html
Check it out ! http://www.softpedia.com/get/Desktop-En ... lock.shtml
http://www.softpedia.com/get/System/Lau ... -Run.shtml
Check it out ! http://www.softpedia.com/publisher/I-A- ... 90017.html
Check it out ! http://www.softpedia.com/get/Desktop-En ... lock.shtml
8 posts
Page 1 of 1
Copyright Information
Copyright © Codenstuff.com 2020 - 2023