Avatar of Clay Willing
Clay Willing
Flag for United Arab Emirates asked on

Show 20 records from table in a 4 x 5 grid not big column

Hi all,

i wuold like to set a recordset to extract 2 fields from a table and instead of showing in a table with 2 columns and 10 rows, spread this across a 4 columns by 5 rows instead.

I dont know if the table can be created dynamically in this manner or by splitting into 2 tables side by side..

Any assistance greatly appreciated
Scripting LanguagesWeb Development

Avatar of undefined
Last Comment
Clay Willing

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Scott Fell

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Clay Willing

ASKER
Going to take a while to merge that into where I am at the moment but makes sense.

Will let you know how I get on


Regards,
Scott Fell

Another way to get the same thing without tables would be using div's.
<style type="text/css">
#td_container {
      width: 800px;
}
#td_container .td {
      float: left;
      width: 190px;
      margin-right: 10px;
}
</style>

<div id="td_container">
<%do until rs.eof%>
<div class="td"><%=rs.field1%></div>
<%
rs.movenext
loop
%>
</div>
Clay Willing

ASKER
Thanks guys, have to give it up for today.  Will give both a good bash tomorrow morning.  

FYI I am writing all my html in Notepad and I am a bit new at the htm coding and havent used divs before or asp yet.  I had created my code from within access previously so it was easy to get the data out.

Check back tomoorow,

C
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
Clay Willing

ASKER
Gave me the prompt to use as abasis for my solution