PC Review


Reply
Thread Tools Rate Thread

Databse to populate dropdown with ability to add entry

 
 
Dave
Guest
Posts: n/a
 
      15th Apr 2004
I am creating a Training Class Entry Form with two MS ACCESS database fields
CLASS and DATE

CLASS would be the Subject of the course where the names of the previous
classes would be available to be selected on a dropdown but also I want the
user to be able to enter a new class name on the top line if a previous name
did not exist.

DATE would be the same as the CLASS. If the date is available in a dropdown
then the user can select it, but if the date did not exist, a new date could
be entered on the top line.

I am using FP2003. Can this be done?

Thanks


 
Reply With Quote
 
 
 
 
Thomas A. Rowe
Guest
Posts: n/a
 
      15th Apr 2004
You would have to add a choice to the Class Drop Down, say "Other" and then have a text field
"Other1" below the Class Drop Down for the user to enter the item, then in your ASP Update or Add
code, you check to see if the value of the Class Drop Down is "Other", then instead of using the
Drop Down value, you would grab the value enter in "Other1" and write that to "Class" field in the
database.

You will also need to write some error check code to avoid the user adding a duplicate entry.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)
http://www.ycoln-resources.com
FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
To assist you in getting the best answers for FrontPage support see:
http://www.net-sites.com/sitebuilder/newsgroups.asp

"Dave" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
> I am creating a Training Class Entry Form with two MS ACCESS database fields
> CLASS and DATE
>
> CLASS would be the Subject of the course where the names of the previous
> classes would be available to be selected on a dropdown but also I want the
> user to be able to enter a new class name on the top line if a previous name
> did not exist.
>
> DATE would be the same as the CLASS. If the date is available in a dropdown
> then the user can select it, but if the date did not exist, a new date could
> be entered on the top line.
>
> I am using FP2003. Can this be done?
>
> Thanks
>
>



 
Reply With Quote
 
Dave
Guest
Posts: n/a
 
      15th Apr 2004
Thanks

Is there sample script somewhere on the If Other is selected then enter
Other1?

I can most of this if I can see a sample first.

Dave

"Thomas A. Rowe" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> You would have to add a choice to the Class Drop Down, say "Other" and

then have a text field
> "Other1" below the Class Drop Down for the user to enter the item, then in

your ASP Update or Add
> code, you check to see if the value of the Class Drop Down is "Other",

then instead of using the
> Drop Down value, you would grab the value enter in "Other1" and write that

to "Class" field in the
> database.
>
> You will also need to write some error check code to avoid the user adding

a duplicate entry.
>
> --
> ==============================================
> Thomas A. Rowe (Microsoft MVP - FrontPage)
> WEBMASTER Resources(tm)
> http://www.ycoln-resources.com
> FrontPage Resources, WebCircle, MS KB Quick Links, etc.
> ==============================================
> To assist you in getting the best answers for FrontPage support see:
> http://www.net-sites.com/sitebuilder/newsgroups.asp
>
> "Dave" <(E-Mail Removed)> wrote in message

news:(E-Mail Removed)...
> > I am creating a Training Class Entry Form with two MS ACCESS database

fields
> > CLASS and DATE
> >
> > CLASS would be the Subject of the course where the names of the previous
> > classes would be available to be selected on a dropdown but also I want

the
> > user to be able to enter a new class name on the top line if a previous

name
> > did not exist.
> >
> > DATE would be the same as the CLASS. If the date is available in a

dropdown
> > then the user can select it, but if the date did not exist, a new date

could
> > be entered on the top line.
> >
> > I am using FP2003. Can this be done?
> >
> > Thanks
> >
> >

>
>



 
Reply With Quote
 
Thomas A. Rowe
Guest
Posts: n/a
 
      15th Apr 2004
<%
Dim Class1
Class1 = Request.Form("Class")

If Class1 = "Other" Then
Class = Request.Form("Other1")
Else
Class = Request.Form("Class")
End If
%>

then pass the value of Class to your Add or Update statement.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)
http://www.ycoln-resources.com
FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
To assist you in getting the best answers for FrontPage support see:
http://www.net-sites.com/sitebuilder/newsgroups.asp

"Dave" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
> Thanks
>
> Is there sample script somewhere on the If Other is selected then enter
> Other1?
>
> I can most of this if I can see a sample first.
>
> Dave
>
> "Thomas A. Rowe" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > You would have to add a choice to the Class Drop Down, say "Other" and

> then have a text field
> > "Other1" below the Class Drop Down for the user to enter the item, then in

> your ASP Update or Add
> > code, you check to see if the value of the Class Drop Down is "Other",

> then instead of using the
> > Drop Down value, you would grab the value enter in "Other1" and write that

> to "Class" field in the
> > database.
> >
> > You will also need to write some error check code to avoid the user adding

> a duplicate entry.
> >
> > --
> > ==============================================
> > Thomas A. Rowe (Microsoft MVP - FrontPage)
> > WEBMASTER Resources(tm)
> > http://www.ycoln-resources.com
> > FrontPage Resources, WebCircle, MS KB Quick Links, etc.
> > ==============================================
> > To assist you in getting the best answers for FrontPage support see:
> > http://www.net-sites.com/sitebuilder/newsgroups.asp
> >
> > "Dave" <(E-Mail Removed)> wrote in message

> news:(E-Mail Removed)...
> > > I am creating a Training Class Entry Form with two MS ACCESS database

> fields
> > > CLASS and DATE
> > >
> > > CLASS would be the Subject of the course where the names of the previous
> > > classes would be available to be selected on a dropdown but also I want

> the
> > > user to be able to enter a new class name on the top line if a previous

> name
> > > did not exist.
> > >
> > > DATE would be the same as the CLASS. If the date is available in a

> dropdown
> > > then the user can select it, but if the date did not exist, a new date

> could
> > > be entered on the top line.
> > >
> > > I am using FP2003. Can this be done?
> > >
> > > Thanks
> > >
> > >

> >
> >

>
>



 
Reply With Quote
 
Dave
Guest
Posts: n/a
 
      15th Apr 2004
Tom thanks for your help!

This will get me started.

I posted another question about multiple dropdowns..

If you time take a look

Dave

"Thomas A. Rowe" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> <%
> Dim Class1
> Class1 = Request.Form("Class")
>
> If Class1 = "Other" Then
> Class = Request.Form("Other1")
> Else
> Class = Request.Form("Class")
> End If
> %>
>
> then pass the value of Class to your Add or Update statement.
>
> --
> ==============================================
> Thomas A. Rowe (Microsoft MVP - FrontPage)
> WEBMASTER Resources(tm)
> http://www.ycoln-resources.com
> FrontPage Resources, WebCircle, MS KB Quick Links, etc.
> ==============================================
> To assist you in getting the best answers for FrontPage support see:
> http://www.net-sites.com/sitebuilder/newsgroups.asp
>
> "Dave" <(E-Mail Removed)> wrote in message

news:(E-Mail Removed)...
> > Thanks
> >
> > Is there sample script somewhere on the If Other is selected then enter
> > Other1?
> >
> > I can most of this if I can see a sample first.
> >
> > Dave
> >
> > "Thomas A. Rowe" <(E-Mail Removed)> wrote in message
> > news:(E-Mail Removed)...
> > > You would have to add a choice to the Class Drop Down, say "Other" and

> > then have a text field
> > > "Other1" below the Class Drop Down for the user to enter the item,

then in
> > your ASP Update or Add
> > > code, you check to see if the value of the Class Drop Down is "Other",

> > then instead of using the
> > > Drop Down value, you would grab the value enter in "Other1" and write

that
> > to "Class" field in the
> > > database.
> > >
> > > You will also need to write some error check code to avoid the user

adding
> > a duplicate entry.
> > >
> > > --
> > > ==============================================
> > > Thomas A. Rowe (Microsoft MVP - FrontPage)
> > > WEBMASTER Resources(tm)
> > > http://www.ycoln-resources.com
> > > FrontPage Resources, WebCircle, MS KB Quick Links, etc.
> > > ==============================================
> > > To assist you in getting the best answers for FrontPage support see:
> > > http://www.net-sites.com/sitebuilder/newsgroups.asp
> > >
> > > "Dave" <(E-Mail Removed)> wrote in message

> > news:(E-Mail Removed)...
> > > > I am creating a Training Class Entry Form with two MS ACCESS

database
> > fields
> > > > CLASS and DATE
> > > >
> > > > CLASS would be the Subject of the course where the names of the

previous
> > > > classes would be available to be selected on a dropdown but also I

want
> > the
> > > > user to be able to enter a new class name on the top line if a

previous
> > name
> > > > did not exist.
> > > >
> > > > DATE would be the same as the CLASS. If the date is available in a

> > dropdown
> > > > then the user can select it, but if the date did not exist, a new

date
> > could
> > > > be entered on the top line.
> > > >
> > > > I am using FP2003. Can this be done?
> > > >
> > > > Thanks
> > > >
> > > >
> > >
> > >

> >
> >

>
>



 
Reply With Quote
 
Thomas A. Rowe
Guest
Posts: n/a
 
      15th Apr 2004
I always do this in steps, so the user would select the first item on the first page, which then
post to the second page with next set of values, otherwise you have to use JavaScript Arrays (I can
not provide you with any help using arrays) to populate the drop downs and adjust them based on the
selection in the first drop down. This mainly become issue when you have a lot of record, as the
content for each drop down is loaded on page load.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)
http://www.ycoln-resources.com
FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
To assist you in getting the best answers for FrontPage support see:
http://www.net-sites.com/sitebuilder/newsgroups.asp

"Dave" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
> Tom thanks for your help!
>
> This will get me started.
>
> I posted another question about multiple dropdowns..
>
> If you time take a look
>
> Dave
>
> "Thomas A. Rowe" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > <%
> > Dim Class1
> > Class1 = Request.Form("Class")
> >
> > If Class1 = "Other" Then
> > Class = Request.Form("Other1")
> > Else
> > Class = Request.Form("Class")
> > End If
> > %>
> >
> > then pass the value of Class to your Add or Update statement.
> >
> > --
> > ==============================================
> > Thomas A. Rowe (Microsoft MVP - FrontPage)
> > WEBMASTER Resources(tm)
> > http://www.ycoln-resources.com
> > FrontPage Resources, WebCircle, MS KB Quick Links, etc.
> > ==============================================
> > To assist you in getting the best answers for FrontPage support see:
> > http://www.net-sites.com/sitebuilder/newsgroups.asp
> >
> > "Dave" <(E-Mail Removed)> wrote in message

> news:(E-Mail Removed)...
> > > Thanks
> > >
> > > Is there sample script somewhere on the If Other is selected then enter
> > > Other1?
> > >
> > > I can most of this if I can see a sample first.
> > >
> > > Dave
> > >
> > > "Thomas A. Rowe" <(E-Mail Removed)> wrote in message
> > > news:(E-Mail Removed)...
> > > > You would have to add a choice to the Class Drop Down, say "Other" and
> > > then have a text field
> > > > "Other1" below the Class Drop Down for the user to enter the item,

> then in
> > > your ASP Update or Add
> > > > code, you check to see if the value of the Class Drop Down is "Other",
> > > then instead of using the
> > > > Drop Down value, you would grab the value enter in "Other1" and write

> that
> > > to "Class" field in the
> > > > database.
> > > >
> > > > You will also need to write some error check code to avoid the user

> adding
> > > a duplicate entry.
> > > >
> > > > --
> > > > ==============================================
> > > > Thomas A. Rowe (Microsoft MVP - FrontPage)
> > > > WEBMASTER Resources(tm)
> > > > http://www.ycoln-resources.com
> > > > FrontPage Resources, WebCircle, MS KB Quick Links, etc.
> > > > ==============================================
> > > > To assist you in getting the best answers for FrontPage support see:
> > > > http://www.net-sites.com/sitebuilder/newsgroups.asp
> > > >
> > > > "Dave" <(E-Mail Removed)> wrote in message
> > > news:(E-Mail Removed)...
> > > > > I am creating a Training Class Entry Form with two MS ACCESS

> database
> > > fields
> > > > > CLASS and DATE
> > > > >
> > > > > CLASS would be the Subject of the course where the names of the

> previous
> > > > > classes would be available to be selected on a dropdown but also I

> want
> > > the
> > > > > user to be able to enter a new class name on the top line if a

> previous
> > > name
> > > > > did not exist.
> > > > >
> > > > > DATE would be the same as the CLASS. If the date is available in a
> > > dropdown
> > > > > then the user can select it, but if the date did not exist, a new

> date
> > > could
> > > > > be entered on the top line.
> > > > >
> > > > > I am using FP2003. Can this be done?
> > > > >
> > > > > Thanks
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >

> >
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Enable ability to choose more than 1 item in dropdown box Karen Microsoft Word Document Management 1 17th Aug 2009 09:50 PM
Allow ability to animate dropdown lists =?Utf-8?B?Y2FuZHlr?= Microsoft Powerpoint 5 10th Aug 2005 01:43 AM
Populate dropdown using XML brian Microsoft ASP .NET 1 29th Mar 2004 05:34 PM
Populate .net dropdown Poppy Microsoft ASP .NET 1 15th Jan 2004 04:10 PM
Populate dropdown André Almeida Maldonado Microsoft ASP .NET 1 14th Jan 2004 01:03 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:09 PM.