|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
deleting from access database
This is the code that I am using to delete from the database, but it doesnt seem to work any ideas people?
Code:
<% SQL = "DELETE FROM jobs WHERE date = #" & personaldeletejobs & "#" set Rs = Conn.Execute(SQL) %> the "personaldeletejobs" contains a date element. |
|
#2
|
|||
|
|||
|
Do you get any errors?
It seems to me that some versions of Access mdb's needed "DELETE * FROM ..." |
|
#3
|
|||
|
|||
|
I have tried it with and without '*' but still the item doesnt delete from the table.
|
|
#4
|
|||
|
|||
|
Leave the * in there, it's proper technique for TSQL.
Print the SQL line to screen and run it against access to make sure. Make sure your ODBC drivers are pointing to the right server. |
|
#5
|
|||
|
|||
|
are you sure the dates in the DB have the same format (eg. dd/mm/jjjj) as "personaldeletejobs" ?
Greetz, |
|
#6
|
|||
|
|||
|
tried your code and works fine for me. Are you sure your date format is the same as your d/b (mm/dd/yyyy)?
btw, what error msg did it show out? |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > deleting from access database |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|