473,396 Members | 2,036 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,396 software developers and data experts.

recordset query

347 100+
I am making a site that lists various radio stations and some of them are grouped together in pairs, i.e. Capital FM and Capital Gold.

I can get them all to list ok but i want to list the grouped stations on 1 line in pairs so they are next to each other. i have a field in my access database to group them called alpha.

the page can be seen at www.yaketyyakallmouth.com/radiousefee/

on this page at the top of the list i want it to have 2 Ten FM and next to it Gold (Thames Valley) on the next line the station 2BR (Burnley) on its own with nothing next to and so on with this list as i have said the stations that are paired have the name of the station in the alpha field of the db so they can be paired together

the asp code for the list is as follows

Expand|Select|Wrap|Line Numbers
  1. <% Do Until(localRecordset.EOF) %>
  2.                  <%
  3. If Not localRecordset.EOF Then
  4. %>
  5.                  <TABLE width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
  6.                  <%
  7. if InStr(localRecordset("amount"),"heading") > 0 then %>
  8.  <TR>
  9.                      <TD width="65%"><%= localRecordset("station") %></TD>
  10.                      <TD width="9%">&nbsp;</TD>
  11.                      <TD width="8%">&nbsp;</TD>
  12.                      <TD width="9%">&nbsp;</TD>
  13.                      <TD width="9%">&nbsp;</TD>
  14.  </TR>
  15.                    <%else%>
  16.                    <TR>
  17.                      <TD width="65%"><%= localRecordset("station") %></TD>
  18.                      <TD width="9%"><INPUT name="num" type="checkbox" id="<%= localRecordset("station") %>" value="<%= localRecordset("amount") %>" onClick="calculate(this.form)"></TD>
  19.                      <TD width="8%"><SPAN class="fee">&pound;<%= localRecordset("amount") %></SPAN> </TD>
  20.                      <TD width="9%"><INPUT name="<%= localRecordset("station") %>" type="checkbox" id="<%= localRecordset("station") %>2" value="<%= localRecordset("amount") %>" onClick="calculate(this.form)"></TD>
  21.                      <TD width="9%"><SPAN class="fee">&pound;<%= localRecordset("amount") %></SPAN></TD>
  22.                    </TR>
  23.                    <% end if %>
  24.                  </TABLE>
  25.                  <% localRecordset.MoveNext
  26. End If
  27. %>
  28.                  <% Loop %>
i hope someone can point me in the right direction
Dec 7 '09 #1
0 1426

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: HKM | last post by:
Hello, I have a query engine that builds the SQL Query to obtain the recordSet. Following is an Exmaple Query that my QueryBuilder outputted SELECT * FROM BookInfo WHERE BookName LIKE...
9
by: Dom Boyce | last post by:
Hi First up, I am using MS Access 2002. I have a database which records analyst rating changes for a list of companies on a daily basis. Unfortunately, the database has been set up (by my...
22
by: Gerry Abbott | last post by:
Hi all, I having some confusing effects with recordsets in a recent project. I created several recordsets, each set with the same number of records, and related with an index value. I create...
6
by: lenny | last post by:
Hi, I've been trying to use a Sub or Function in VBA to connect to a database, make a query and return the recordset that results from the query. The connection to the database and the query...
3
by: Nathan Bloomfield | last post by:
Hi there, I am having difficulty with a piece of code which would work wonders for my application if only the error trapping worked properly. Basically, it works as follows: - adds records...
2
by: Lyn | last post by:
Hi, I am opening a form in Continuous mode to list the records from a recordset created in the calling form. The recordset object is declared as Public and is set into the new form's Recordset...
13
by: Jan | last post by:
Hi I have a database that I use to keep track of the sales promotions that we send to companies. I normally send a mailing based on a subset of the companies in the database (found using the...
2
by: ajspacemanspiff | last post by:
I currently have a solution that requires 2 sub queries, where each of them is convereted into a crosstab query and then I join the crosstab queries to a result. I would like to make this more...
11
by: altreed | last post by:
Hi, I am new to ASP, HTML and iis. I have my asp code working so that I can retrieve my desired record from the database. I can place the data on the screen in table form. All works fine. ...
5
by: Henrik | last post by:
The problem is (using MS Access 2003) I am unable to retrieve long strings (255 chars) from calculated fields through a recordset. The data takes the trip in three phases: 1. A custom public...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...
0
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...
0
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...

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.