When I enter the date in manually as follows the query will work
WHERE (((qyRoomPeriods.ResourceDates)=#17/01/2005#))
If I put a textbox.text = 17/01/2005
it will not
How can I get the value into the sql in the format #dd/mm/yyyy# from the textbox
what are the # doing ?
The following SQL returns booking mage on a certain date ie =Date()
I now want to select a date using a calendar.
I have tried populating a textbox and replacing the =Date() with =textbox12.text but it will not work
How could i get this to work
Dim queryString As String = "TRANSFORM...
I have a field in an access db that contains a number when it is booked.
When I delete a booking I want to set this field back to being empty.
I am using the following SQL statement.This works when eg i put a 1 into textbox12
strDelete = "Update ResourceDates Set BookingRef=(" &"'" &...
The following message is displayed
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object
Fails at
strInsert = "INSERT INTO Bookings (StartDate) VALUES ( '" & tbstartDate.Text & "')"
I am just using webmatrix to compile code
I put the...
I am using a datalist to display one entry in Access DB.
I want to enter new values into the textboxes on datalist and hit a submit button to insert new record in DB
I can do this when with the following code
strInsert = "INSERT INTO Bookings (StartDate, NoWeeks, Available) VALUES (...
I have bound buttons on an datagrid on an aspx page.
The buttons contain information from a table in an access database.
When I click on a button it opens another aspx page on which I want to display all the details associated with this button.
I have got the correct SQL query working on the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.