Getting trickier.... (Full Version)

All Forums >> [Web Development] >> ASP and Database



Message


Stuart at Cherry -> Getting trickier.... (3/28/2001 20:18:00)

Okay, yesterday I had a blinder. Updated my recruitment site so that it had a back end access database, an asp page which pulled up the vacancies from the database. I also put in an 'admin' section of the site which allowed consultants to post their own jobs. This put the jobs in the database and they are immediately displayed in the vacancies.asp page. Great.

However, I need a 'vacancies administration section' where consultants can amend jobs - say they realised they made a mistake after posting - and where they can remove vacancies once they are no longer open. I've created a page which lists the vacancies in summary form, and have put two buttons next to each - amend, and delete - but now I don't know how to get them work. I'd put up a page similar to the 'post a job' one and populate it with the info originally posted, but how can I be sure when it posts back to database it overwrites the job and doesn't just create another?

And what about the delete? Where on earth do I start with that?

If anyone's interested, you can see what I mean on the test site www.vbcontracts.com if you click on the admin link bottom left of the screen. Oh you'll need a name and password (thanks spooky!) and 'paul' and 'paul' will get you in.

Thanks in advance

------------------
***born to be wild***





Stuart at Cherry -> RE: Getting trickier.... (3/28/2001 20:03:00)

Ugh, kind of fixed this now. Gave up on the 'amend' field and left it at add and delete.

Did the delete stuff from a link on this site using a 'deleterecord.asp' with the following in the SQL Statement box:

DELETE DISTINCTROW Job_reference
FROM Vacancies
WHERE (Job_reference='::Job_reference::')

Where the Job_reference had been passed from a delete.asp page. It's a bit clumsy, but it works.

You can still see it on the site per previous post if you're interested.

Thanks again to outfront.net for the info...

------------------
***born to be wild***





Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
3.198242E-02