Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Change Edit Form to Insertion

Status
Not open for further replies.

mswilson16

Programmer
Nov 20, 2001
243
US
Hi All,

I have create a serious of ASP pages... and I need to know if something is possible.

I created the pages by creating the asp page, then going to Insert, Application Objects, Record Update Form... Now this is working great, except for my one problem. When there are no records present the form is completely blank. I have also created some Insertion Forms... which work fine.

My question is, if I take the user to an Update Form, and there are no records, is there a way that I can change the current form from update to an insertion form? if not, how do I get the page to realise that no data was found and to redirect them to an insertion form?

Thanks in advance

Mswilson
 

I assume from your post that you're using some sort of WYSIWYG editor like FrontPage or Dreamweaver - you may or may not get answers on which menu/button/feature of these packages may help you - as this forum is mostly about coding ASP applications.

If you want to do it directly with the code (or I've incorrectly assumed above) then post the code you have and we can point you in the right direction.

e.g.
Using EOF and BOF to determine if there are any records, then response.redirect to goto the insert page.

If you want click by click methods you may be better going to the frontpage or dreamweaver / whatever forums.



A smile is worth a thousand kind words. So smile, it's easy! :)
 
What software are you using to create serious ASP pages?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top