By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,652 Members | 1,911 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,652 IT Pros & Developers. It's quick & easy.

Trying to make a form not sure how to do it

P: n/a
I will attempt to describe this, hopefully it will make sense. Say
there is an input text box for a web site's name, and a checkbox for
say whether or not they have a search function. Also, there is a
textbox that allows you to enter something like a description of the
site like "Books" or "Video games" or anything you want.

This so far is easy enough, but what if I want to click a button like
"Add entry" so that I can enter another web site's name and check
whether it has a search function. The only thing that stays the same
is the description of the site.

So, if I have "Books" entered, and "amazon.com" checked for a search
function, then I click on "Add entry", then I can type in
"barnesandnoble.com" and check the search checkbox.

The only thing I could think of is to make the form's text boxes and
checkboxes invisible, and then when I click add entry, they would
become visible. This would be a lot of work if I needed say 15 entries
for "Books" and then 2 entries for something else like "Video games."

Nov 13 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
FeelGoodInc wrote:
I will attempt to describe this, hopefully it will make sense. Say
there is an input text box for a web site's name, and a checkbox for
say whether or not they have a search function. Also, there is a
textbox that allows you to enter something like a description of the
site like "Books" or "Video games" or anything you want.

This so far is easy enough, but what if I want to click a button like
"Add entry" so that I can enter another web site's name and check
whether it has a search function. The only thing that stays the same
is the description of the site.

So, if I have "Books" entered, and "amazon.com" checked for a search
function, then I click on "Add entry", then I can type in
"barnesandnoble.com" and check the search checkbox.

The only thing I could think of is to make the form's text boxes and
checkboxes invisible, and then when I click add entry, they would
become visible. This would be a lot of work if I needed say 15 entries
for "Books" and then 2 entries for something else like "Video games."

Dim strType As String
strType = Me.TypeOfEntry
Docmd.GotoRecord acDataForm,"YourFormName",acNewRec
Me.TypeOfEntry = strType

Nov 13 '05 #2

P: n/a
This is the same thing I was going to tell you. This will work like a
charm. :-D

Nov 13 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.