database - show all records apart from the 1st...how?

Ask a Question related to Dreamweaver AppDev, Design and Development.

  1. #1

    Default database - show all records apart from the 1st...how?

    Hi,

    We have an events calendar in Access, and we are using VBScript/ASP for the
    site.

    Is it possible to display ALL events, apart from the 1st record?

    We have a "latest news" section on a page, which displays the very latest
    event (1st record in the database table). Below that we want to drop in a
    repeat region for "other events" that would display everything,
    chronologically, apart from the 1st record which is already displayed in
    "latest news".

    Thanks
    Nath.


    Nathon Jones Guest

  2. Similar Questions and Discussions

    1. MMColParam and Default Show All Records?
      I have a recordset and I want to set the default variable for MMColParam to default to showing all records in case the page is called outside of the...
    2. show all records apart from First
      This may be really easy - but can anyone tell me how to create a record set to show all records except the first record. I would use the primary...
    3. Show Multiple Records in one Row
      Hi We can do this using Cross Tab SQL Query. Can you send the Table name and fields so that i can give you the correct Cross Tab Query for this....
    4. How to get all records to show in the database all the time please
      Shuqian <peacedmr@yahoo.com> wrote: After you enter Find mode and enter your search criteria, you have to hit Enter to perform the Find. You...
    5. new records will not show up in form
      I have created a form using a query and I want to add new records, and I want them to show up in the form. However, when I add new records they...
  3. #2

    Default Re: database - show all records apart from the1st...how?

    In PHP i do it like this... ( for you, you need the ASP equiv of 'data_seek' )
    # Get All Info $qAll='SELECT * FROM table WHERE bla bla';
    $rAll=mysql_query($qAll,$conDB) or die(mysql_error().'-getAll-');
    $numAll=mysql_num_rows($rAll); # if ($numAll>0): mysql_data_seek($rAll,
    0); --- this line for all, or ',1' to skip first while
    ($rowAll=mysql_fetch_assoc($rAll)): echo $rowAll['fieldname'];
    endwhile; endif; # This data_seek is real useful, as i can use the same DB
    result set many times on the same page... Hope this helps.

    BigJon1999 Guest

  4. #3

    Default Re: database - show all records apart from the 1st...how?

    Get all your results in a single recordset.
    Display the latest record. Below the latest record, add
    yourRSName.MoveNext().
    Use a normal repeat region set to display all records in the area you'd like
    to show other events.

    "Nathon Jones" <nathonjonesNOT@kirkmoor.com> wrote in message
    news:d047vp$1ef$1@forums.macromedia.com...
    > Hi,
    >
    > We have an events calendar in Access, and we are using VBScript/ASP for
    the
    > site.
    >
    > Is it possible to display ALL events, apart from the 1st record?
    >
    > We have a "latest news" section on a page, which displays the very latest
    > event (1st record in the database table). Below that we want to drop in a
    > repeat region for "other events" that would display everything,
    > chronologically, apart from the 1st record which is already displayed in
    > "latest news".
    >
    > Thanks
    > Nath.
    >
    >

    CMBergin Guest

  5. #4

    Default Re: database - show all records apart from the 1st...how?

    Try

    select * from news
    where id not in (
    select top 1 id from news order by id
    )

    --
    Jules
    [url]http://www.charon.co.uk/charoncart[/url]
    Charon Cart 3
    Shopping Cart Extension for Dreamweaver MX/MX 2004


    Julian Roberts Guest

  6. #5

    Default Re: database - show all records apart from the 1st...how?

    Hi CM,

    Sorry, but can you talk me through that in a little more detail?

    So, I create one recordset, that displays all the events, arranged by date
    desc, so that the latest record, is 1st.

    How do I then add Recordset.MoveNext?

    For my sakes (!), lets say I have two fields showing. This is how it would
    appear in my code (within a standard repeat region)...

    <%=(rsEvents.Fields.Item("eventname").Value)%><b r>
    <%=(rsEvents.Fields.Item("eventdate").Value)%>

    So where am I adding - rsEvents.MoveNext()?

    Thanks again.
    Nath.

    "CMBergin" <NoHarvestForYou@NoSpam.org> wrote in message
    news:d04erv$c1i$1@forums.macromedia.com...
    > Get all your results in a single recordset.
    > Display the latest record. Below the latest record, add
    > yourRSName.MoveNext().
    > Use a normal repeat region set to display all records in the area you'd
    > like
    > to show other events.
    >
    > "Nathon Jones" <nathonjonesNOT@kirkmoor.com> wrote in message
    > news:d047vp$1ef$1@forums.macromedia.com...
    >> Hi,
    >>
    >> We have an events calendar in Access, and we are using VBScript/ASP for
    > the
    >> site.
    >>
    >> Is it possible to display ALL events, apart from the 1st record?
    >>
    >> We have a "latest news" section on a page, which displays the very latest
    >> event (1st record in the database table). Below that we want to drop in
    >> a
    >> repeat region for "other events" that would display everything,
    >> chronologically, apart from the 1st record which is already displayed in
    >> "latest news".
    >>
    >> Thanks
    >> Nath.
    >>
    >>
    >
    >

    Nathon Jones Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139