Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8460981
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T13:45:17+00:00 2026-06-10T13:45:17+00:00

I’m having trouble with MS Access. I have boolean and Memo type fields and

  • 0

I’m having trouble with MS Access. I have boolean and Memo type fields and I’m using aggregate functions (Group by etc). The Bools give information about a survey result, and the memo field explains the reasoning behind that result.

I’ve hit two minor hiccups,

  1. My booleans are displaying as 0 (unchecked) and -1 (checked)
    I managed to revert them back to tick boxes (slightly more obvious what they are) but now they are back to numeric expressions, and I don’t know what I did.
  2. My memo/boolean field behaves weirdly when comparing FIRST/LAST
    Before, when I grouped by the memo field I had duplicates, the ones with a checked boolean tickbox came First, and were lined up with the memo field. When I apply FIRST logic it displays the ‘last’ of the duplicates, eg, with two ‘duplicates’ that only vary by the boolean and memo, FIRST displays duplicate 2. If I apply LAST logic it displays duplicate 1.

To clarify, when using GROUP BY it displayed as such:

Name|Risk? |Memo
Bob |Tick  |Description one
Bob |Untick|Description two

And when selecting the risk and memo field to only display FIRST I got:

Name|Risk? |Memo
Bob |0     |Description two

Which was not the first one out of the duplicates!

So I have to ask, how are agregated booleans displayed, and why do they get converted to 0/-1? And how are Booleans/Memo fields sorted using FIRST/LAST logic?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T13:45:18+00:00Added an answer on June 10, 2026 at 1:45 pm

    I am not sure what you are saying, but zero (0) comes before minus one (-1), so the No (0) will be first. As for changing to 0,-1, they are not, that is what the field contains, anything else is format. If you are running a query, you can add a format to suit:

     SELECT Format([ayesno],"Yes/No") FROM table
    

    More: Format Property – Yes/No Data Type

    The bottom corner shows Top 1, which is what I suspect you want.

    sSQL = "SELECT t.Comment, t.TickThis " _
    & "FROM Table2 t " _
    & "WHERE t.ID IN ( " _
    & "SELECT Top 1 ID FROM Table2 t2 " _
    & "WHERE t2.Comment=t1.Comment " _
    & "ORDER BY t2.TickThis Desc, t2.Comment) "
    

    Last, min, max

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
We're building an app, our first using Rails 3, and we're having to build
I'm having trouble keeping the paragraph square between the quote marks. In firefox the
I have thousands of HTML files to process using Groovy/Java and I need to
I have a .ini file as follows: [playlist] numberofentries=2 File1=http://87.230.82.17:80 Title1=(#1 - 365/1400) Example
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and
I have a jquery bug and I've been looking for hours now, I can't
this is what i have right now Drawing an RSS feed into the php,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.