473,467 Members | 1,929 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Access to ASP Problem...

If anyone can help:
I just created a data base in MS ACCESS, which is very basic. Its a
list of users eg. names addresses etc.

However on this list is 6 columns with checkboxes, the boxes
representin if an individual user posseses a right or no. Check being
yes, no check being no.

I tried a conversion utility called ASP runner to publish the database
onto an intranet., no problem there it did the job. The pages are now
running on an intranet enviroment for certain people to see.

The problem is that the checkboxes that were present in the access
database, are now being diplayed as yes/no on the ASP pages.

Can anyone tell me how to get the ASP pages to display checkboxes?
Sorry if this is simple stuff, but I am relatively new to ASP. Been
seraching the web for an answer, but havent bee able to find anything.
Thanks In Advance.
Nov 12 '05 #1
7 2281
"Bill Carson" wrote
The problem is that the checkboxes
that were present in the access
database, are now being diplayed as
yes/no on the ASP pages. Can anyone tell me how to get the
ASP pages to display checkboxes?


I'm 100% confident that someone can; I'm not nearly that confident that, on
any given day, you'll find someone _here_ who can. This newsgroup is about
Microsoft Access, and ASP is quite a different thing, even if it can use the
same Jet database that Access does.

There are quite a number of newsgroups devoted to .asp and web
applications -- those would be the place to ask. I'd say your plight does
point out one of the _disadvantages_ of relying on a utility to create your
web pages -- if you don't know the underlying or output language, you may
have to accept what it generates.

I use Front Page to generate static web sites because it is so quick and so
easy compared to writing the HTML from scratch. But, if need be, I know
enough HTML that I can go in and, with liberal use of reference books, make
changes.

When you find an appropriate newsgroup, you'll need to give them some
detail, including which language(s) is(are) used in your .asp pages -- if
classic, that'd likely be vbscript or javascript? Indeed, are they "classic
asp" or ASP.NET? What is the vbscript or javascript code that shows the
Yes/No?

If you haven't already got a favorite USENET .asp newsgroup, you might want
to look in the microsoft.public... sponsored newsgroup hierarchy. You can
get them on a free news server at news.microsoft.com.

Larry Linson
Microsoft Access MVP
Nov 12 '05 #2
Bill Carson <fr***@verizon.net> wrote:
If anyone can help:
I just created a data base in MS ACCESS, which is very basic. Its a
list of users eg. names addresses etc.

However on this list is 6 columns with checkboxes, the boxes
representin if an individual user posseses a right or no. Check being
yes, no check being no.

I tried a conversion utility called ASP runner to publish the database
onto an intranet., no problem there it did the job. The pages are now
running on an intranet enviroment for certain people to see.

The problem is that the checkboxes that were present in the access
database, are now being diplayed as yes/no on the ASP pages.

Can anyone tell me how to get the ASP pages to display checkboxes?
Sorry if this is simple stuff, but I am relatively new to ASP. Been
seraching the web for an answer, but havent bee able to find anything.
Thanks In Advance.


Please post the code for your asp page(s). I can most likely help, as
I write ASP code to MS-Access and SQL Server databases all day long.

However, Larry's advice is sound: you should try the
microsoft.public.inetserver.asp.general
newsgroup.

However, before you do, post the code to your page. Because they will
admonish you if you don't.

Bill

--
Bill Ramsey
bi*********@insightbb.com
Nov 12 '05 #3
try changing your input type to "checkbox"
i get most of my asp help from microsoft.public.inetserver.asp.general
;microsoft.public.scripting.vbscript on msnews.microsoft.com and
web.server.scripting and web.asp on news.devx.com

rh

"Bill Carson" <fr***@verizon.net> wrote in message
news:pe********************************@4ax.com...
If anyone can help:
I just created a data base in MS ACCESS, which is very basic. Its a
list of users eg. names addresses etc.

However on this list is 6 columns with checkboxes, the boxes
representin if an individual user posseses a right or no. Check being
yes, no check being no.

I tried a conversion utility called ASP runner to publish the database
onto an intranet., no problem there it did the job. The pages are now
running on an intranet enviroment for certain people to see.

The problem is that the checkboxes that were present in the access
database, are now being diplayed as yes/no on the ASP pages.

Can anyone tell me how to get the ASP pages to display checkboxes?
Sorry if this is simple stuff, but I am relatively new to ASP. Been
seraching the web for an answer, but havent bee able to find anything.
Thanks In Advance.

Nov 12 '05 #4
Input type is exactly what it was.
I had to add a line of code "data type 11 input type checkbox".
Im going to post the exact code here Monday because I cant remember
exactly what it was.

I actually have another minor issue, that similar.
I will elaborate more on it once I have posted the code here.

Would like to thank everyone for their responses.

BC
On Thu, 6 Nov 2003 13:58:27 -0500, "kling0n"
<kl*****@nospam.mailandnews.com> wrote:
try changing your input type to "checkbox"
i get most of my asp help from microsoft.public.inetserver.asp.general
;microsoft.public.scripting.vbscript on msnews.microsoft.com and
web.server.scripting and web.asp on news.devx.com

rh

"Bill Carson" <fr***@verizon.net> wrote in message
news:pe********************************@4ax.com.. .
If anyone can help:
I just created a data base in MS ACCESS, which is very basic. Its a
list of users eg. names addresses etc.

However on this list is 6 columns with checkboxes, the boxes
representin if an individual user posseses a right or no. Check being
yes, no check being no.

I tried a conversion utility called ASP runner to publish the database
onto an intranet., no problem there it did the job. The pages are now
running on an intranet enviroment for certain people to see.

The problem is that the checkboxes that were present in the access
database, are now being diplayed as yes/no on the ASP pages.

Can anyone tell me how to get the ASP pages to display checkboxes?
Sorry if this is simple stuff, but I am relatively new to ASP. Been
seraching the web for an answer, but havent bee able to find anything.
Thanks In Advance.


Nov 12 '05 #5
Bill,
This is simple.
The guys should not be so hard on you.
Any Access programmer should have some working knowledge os ASP.

Place this in your ASP code with each field that has a checkbox that
you are placing on the ASP page.
"field" will represent the access field.
It is referred to by the recordset name.
In most cases, it is the name of the table or query that generates the
page.
Depending on which program you used it should look like
rst!field
or
rst(field)
Both are acceptable in ASP.
Here is the code.

If rst(field) = TRUE THEN
Respone.write "<INPUT TYPE='checkbox' SELECTED>"
Else
Respone.write "<INPUT TYPE='checkbox' >"
End If

Remember that ASP will interpret YES/NO as TRUE/FALSE.

Hope this helps.
If not let me know.
Andy
Nov 12 '05 #6
Thanks Andy.
I am going try this code tommorow and will keep you posted.

You might be able to help me with one other slight related problem.
ILL post it tommorow after im done playing around with the code.

Thnaks once again.

BC
On 8 Nov 2003 18:36:58 -0800, an*************@acedsl.com (Andy) wrote:
Bill,
This is simple.
The guys should not be so hard on you.
Any Access programmer should have some working knowledge os ASP.

Place this in your ASP code with each field that has a checkbox that
you are placing on the ASP page.
"field" will represent the access field.
It is referred to by the recordset name.
In most cases, it is the name of the table or query that generates the
page.
Depending on which program you used it should look like
rst!field
or
rst(field)
Both are acceptable in ASP.
Here is the code.

If rst(field) = TRUE THEN
Respone.write "<INPUT TYPE='checkbox' SELECTED>"
Else
Respone.write "<INPUT TYPE='checkbox' >"
End If

Remember that ASP will interpret YES/NO as TRUE/FALSE.

Hope this helps.
If not let me know.
Andy


Nov 12 '05 #7
This is the line of code that was added and it works fine.

if Field.Type=11 then
GetData = "<input type=checkbox disabled name=""" &
Field.Name & """" : _

if Trim(CStr(Field.Value))="True" then GetData = GetData & " checked "
: _

GetData = GetData & ">"
However now I have another small issue:

The check boxes diplay fine with the correct data eg. check or no
check.
But each user has an edit field hyperlink which takes you to that
users information in an editable format..
When I go to edit a users information, the previusly saved checks, are
not carrying into the edit page.
I have to place the appropriate check marks again, if I dont, and then
do a save, there are no checks
in any of the boxes.

What I would like is for all the previously saved information to carry
into the edit page,including the apporpriate checks.

Is there another line of code that I am missing?

Thanks

BC
Nov 12 '05 #8

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

Similar topics

11
by: Wolfgang Kaml | last post by:
Hello All, I have been working on this for almost a week now and I haven't anything up my sleeves anymore that I could test in addition or change.... Since I am not sure, if this is a Windows...
49
by: Yannick Turgeon | last post by:
Hello, We are in the process of examining our current main application. We have to do some major changes and, in the process, are questionning/validating the use of MS Access as front-end. The...
0
by: bettervssremoting | last post by:
To view the full article, please visit http://www.BetterVssRemoting.com Better VSS Remote Access Tool including SourceOffSite, SourceAnyWhere and VSS Remoting This article makes a detailed...
13
by: Al the programmer | last post by:
I need to access the serial ports on my webserver from an asp.net page. I have no problem accessing the serial ports from a windows form application, but the code doesn't work in asp.net. I have...
17
by: DaveG | last post by:
Hi all I am planning on writing a stock and accounts program for the family business, I understand this is likely to take close to 2 years to accomplish. The stock is likely to run into over a...
5
by: B1ackwater | last post by:
We've fooled around with Access a bit, but only using the single-user store-bought version. It seems to be a good database - versatile and infinitely programmable - and can apparently be used as a...
34
by: Mathieu Trentesaux | last post by:
Hello I downloaded Office 2007 for this reason : It seems, once again, that it is impossible to save any modification done in a VBA library, from the main project in Access. The save button...
21
by: Bigpond News | last post by:
Work at a large site - 1000+ PC's. Mixture of Win98 & WinXP. Majority of applications using Access 97. If I compile the Acc97 application on a Win98 PC, the .mde will run perfectly on both...
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...
7
by: clintonG | last post by:
To all Microsoft partners and customers who have been unable to download recently or access ASP.NET documentation from the msdn2 website and for all of those customers who have been lied to and...
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.