473,387 Members | 1,891 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

How Do I? - Access Database via Visual Studio 2005

Hello,

I have the following scenario and I was hoping that someone would help
me determine the best way to approach this situation in Visual Studio
2005:

1) I have questions in a database which I would like to display on a
form.
2) Along with the questions, I would like to display a series of
radio controls for the user to supply their input.
3) At the end of these series of questions and radio boxes, I would
like to display a command button. When the user clicks on this
command button, the database will be queried and the answers to the
questions will be displayed.

For example, the form would say:

------------------------------------------------------------------------------------------------------------------------
What is your favorite type of dog?
<radio1Beagle <radio2 Great Dane <radio3 Greyhound
<radio4 Other

What is your favorite type of cat?
<radio1Siamese <radio2 Persian <radio3 Hairless
<radio4 Other
------------------------------------------------------------------------------------------------------------------------

When the user highlights their choice via the radio button, and then
clicks on the SUBMIT Command Button, the form will display the
database results. For example:

------------------------------------------------------------------------------------------------------------------------
What is your favorite type of dog? You said: "Great Dane". Most
people The most popular choice was: "Beagle", chosen by 54% of
respondents.

What is your favorite type of cat? You said: "Hairless". Most
people The most popular choice was: "Siamese", chosen by 59% of
respondents.
------------------------------------------------------------------------------------------------------------------------

I see various types of controls, SQL Readers, Data Grids, etc. but
I'm wondering what would be the best way to do this in Visual Studio
2005? Does anyone have any "snippets" of code that does this that
they could post?

Thanks
Sam

Apr 17 '07 #1
1 1266
I'd try here for some samples:
http://www.asp101.com/samples/

<sa***********@yahoo.cawrote in message
news:11**********************@n59g2000hsh.googlegr oups.com...
Hello,

I have the following scenario and I was hoping that someone would help
me determine the best way to approach this situation in Visual Studio
2005:

1) I have questions in a database which I would like to display on a
form.
2) Along with the questions, I would like to display a series of
radio controls for the user to supply their input.
3) At the end of these series of questions and radio boxes, I would
like to display a command button. When the user clicks on this
command button, the database will be queried and the answers to the
questions will be displayed.

For example, the form would say:

--------------------------------------------------------------------------
----------------------------------------------
What is your favorite type of dog?
<radio1Beagle <radio2 Great Dane <radio3 Greyhound
<radio4 Other

What is your favorite type of cat?
<radio1Siamese <radio2 Persian <radio3 Hairless
<radio4 Other
--------------------------------------------------------------------------
----------------------------------------------
>
When the user highlights their choice via the radio button, and then
clicks on the SUBMIT Command Button, the form will display the
database results. For example:

--------------------------------------------------------------------------
----------------------------------------------
What is your favorite type of dog? You said: "Great Dane". Most
people The most popular choice was: "Beagle", chosen by 54% of
respondents.

What is your favorite type of cat? You said: "Hairless". Most
people The most popular choice was: "Siamese", chosen by 59% of
respondents.
--------------------------------------------------------------------------
----------------------------------------------
>
I see various types of controls, SQL Readers, Data Grids, etc. but
I'm wondering what would be the best way to do this in Visual Studio
2005? Does anyone have any "snippets" of code that does this that
they could post?

Thanks
Sam

Apr 17 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: olle | last post by:
Hi everyone. I am an Access developer having worked with Access-dev. projects for many years on Sql server databases and Access. For the internet I have been using traditional asp. But now I have...
33
by: Uwe Range | last post by:
Hi to all! A customer of mine told me some days ago that her IT-people told her ACCESS would not be such a good idea for continuing with our project, because Access will not be continued in the...
9
by: Neil | last post by:
We have an Access 2000 MDB with a SQL 7 back end. We are upgrading SQL Server to SQL 2005, and are considering upgrading to Access 2003. Someone mentioned that they had heard about some...
18
by: surfrat_ | last post by:
Hi, I am having the following problems in getting Microsoft Visual Studio 2005 Professional to link to an Access .mdb database. Please help me to sort this out. Problem 1: The Microsoft...
5
by: Ted | last post by:
I am working on two versions of an application, one of which will be a windows forms application (which will need to be redistributable) and the other will be a web application. I have MS Visual...
5
by: Mo | last post by:
Hello all, I'm trying to set up an access 2000 .adp project connecting to a SQL server 2005 database. I can set up the connection ok, but once I have completed the setup process, I get the...
9
by: =?Utf-8?B?RnJpdHo=?= | last post by:
Hi all, I am having the following problems in getting Microsoft Visual Studio 2005 Professional to link to an Access .mdb database. Please help me to sort this out. Problem 1: ======= The...
2
by: raylopez99 | last post by:
I am trying to program a database from inside C++.NET via Visual Studio 2005 using the ADO.NET set of classes, but this I believe is a SQL Server 2005 Express permissions question under Windows XP...
7
by: Agos | last post by:
I developed my first web site using Visual studio 2005. It works very well with Visual Studio. But after I published the web site in a file system folder in my PC using the instructions I found in...
4
by: Cindy H | last post by:
Hi I am currently using Visual Studio.Net 2003 running on Windows Server 2000 operating system. I have used Visual Studio.net 2003 connecting to Access 2002 databases in the pass with great...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.