473,544 Members | 801 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Help - 3 action buttons on each record

Hi, I have the following need: I list a table from an access database but
cannot interact with each record.
At the html page I display all records, one field (field1) from and 3
buttons for each record so to:
Button 1) Accept: Sets 1 on field 2 on that record
Button 2) Reject: Sets 0 on field 2 on that record
Button 3) Delete: Deletes that record

That'd be:
-------------Record 1---------------
Message: Hello 1!!!
ACCEPT - REJECT - DELETE
-------------Record 2---------------
Message: Hello 2!!!
ACCEPT - REJECT - DELETE
-------------Record 3---------------
Message: Hello 3!!!
ACCEPT - REJECT - DELETE
-------------Record 4---------------
Message: Hello 4!!!
ACCEPT - REJECT - DELETE

For example I press delete button and it'll have to delete that record:
-------------Record 1---------------
Message: Hello 1!!!
ACCEPT - REJECT - DELETE
-------------Record 3---------------
Message: Hello 3!!!
ACCEPT - REJECT - DELETE
-------------Record 4---------------
Message: Hello 4!!!
ACCEPT - REJECT - DELETE
Actually, I'm just displaying these records but I don't know how to do
different actions for each button for each field.

This is the code:

<form name="form" method="post" action="add_to_ guestbook.asp">
<table width="610" border="0" align="center" cellpadding="0"
cellspacing="0" >
<%
while not RS.eof
%>
<tr>
<td>
<%Response.Writ e RS("MessageText ")%>
</td>
</tr>
<tr>
<td>
<%Response.Writ e RS("MessageFrom ")%> - <%Response.Writ e
RS("MessageDate ")%>
</td>

Hope you can help me,

Marcelo.
<tr>
<input type="button" name="btnAccept " value="Accept">
<input type="button" name="btnReject " value="Reject">
<input type="button" name="btnDelete " value="Delete"> </td>
</tr>
<%RS.movenext %>
<%wend
set conn=Nothing
set RS=Nothing
%>
</table></td>
</tr>
</form>
May 12 '06 #1
0 1326

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

Similar topics

2
4667
by: kma | last post by:
I am designing an Access 2000 database on a computer running Windows 98. I have one form with several tabs; all of which have sub forms, some with a subform on a subform. For example, on my main Job form I have a tab for PO's to keep track of all purchase orders pertaining to a specific job. The first subform is for the PO numbers...
2
2981
by: Paul Malcomson | last post by:
Hi. I'm having terrible trouble with a form that displays several parent/child relationships at one time. It is a sales force hierarchy - Sales force, district, territory, sales rep are the tables linked in parent/child relationships. I'm using a form to choose the main-parent and then several subforms in datasheet view.
2
1528
by: Sam | last post by:
I'm working on a small application and I am stuck on the logic behind one of the queries I want to write. I've always considered myself to be a good problem solver and it depresses me that I can't figure this out. I don't really need any SQL syntax or anything, just help with ANDs, ORs, NOTs, etc... I have a table that has a column for a...
8
3199
by: Steph | last post by:
Hi. I'm very new to MS Access and have been presented with an Access database of contacts by my employer. I am trying to redesign the main form of the database so that a button entitled 'search' may be clicked on by the user and the user can then search all records by postcode. I want to do this to prevent duplicate data entry.
14
1575
by: ApexData | last post by:
In my database, I uniformly handle records on a Record by Record basis, in a single form that contains New/Edit/Del buttons. Because I'm dealing with records one at a time, I can easily manage my button operations. The user enters the system in ViewOnlyMode, if EditButton is pressed, the fields turn yellow, and Me.AllowEdits becomes true, and...
1
2903
lwwhite
by: lwwhite | last post by:
Another question. On one of my forms, I have two radio buttons: Topic and Window. Beside each of them is a drop-down to select the corresponding topic or window. When Topic is selected the window drop-down is disabled, and vice-versa. But what I'd like to do is give the appearance of one field only. So I placed the topic drop-down directly on...
2
2884
by: rookiejavadude | last post by:
I'm have most of my java script done but can not figure out how to add a few buttons. I need to add a delete and add buttong to my existing java program. Not sure were to add it on how. Can anyone help? my script is below. thank you import java.awt.*; //import all java.awt import java.awt.event.*; //import all java.awt.event import...
1
1758
by: kvazar | last post by:
What I am trying to create is basically a page with a bunch of multiple choice questions. Basically just like a test page. I am providing the code lower. All the questions that need to show as a part of the test are stored in a separate database. There is also a test file "list.txt" that has names of files from the database that I want to display....
2
3737
by: yeshello54 | last post by:
so here is my problem...in a contact manager i am trying to complete i have ran into an error..we have lots of code because we have some from class which we can use...anyways i keep getting an error when i do the following. if you add a contact with up to 13 fields it will be stored in a data structure. i have a tabbed pane that will show six of...
0
7424
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7365
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7607
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7772
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7376
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7709
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5297
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
4918
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
1
988
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.