+ Reply to Thread
Results 1 to 3 of 3

Help needed to count of records from table to user form

  1. #1
    Forum Contributor
    Join Date
    10-30-2011
    Location
    Doha
    MS-Off Ver
    MS office 365
    Posts
    701

    Help needed to count of records from table to user form

    Folks,

    I have a Access 2010 database with a master table called "Radio_Main" with field "Condition".

    Under "Condition" filed there are three records "Damaged", "Missing" and "Good Condition". Now I want to get Count of "Good Condition" records in TextBox1 on a user form called "R_Radio". Please help me to fix this issue.

    Thanks in advance.

    Joshi
    Last edited by krjoshi; 09-05-2014 at 07:49 PM.
    Cheers,

    Joshi
    Being with a winner makes you a winner

  2. #2
    Valued Forum Contributor ranman256's Avatar
    Join Date
    07-29-2012
    Location
    Kentucky
    MS-Off Ver
    Excel 2003
    Posts
    1,176

    Re: Help needed to count of records from table to user form

    textbox1 = dcount("*","Radio_Main","[Condition]='Good Condition' ")

  3. #3
    Forum Contributor
    Join Date
    10-30-2011
    Location
    Doha
    MS-Off Ver
    MS office 365
    Posts
    701

    Re: Help needed to count of records from table to user form

    Hi ranman256,

    Oh great...Thank you so much for your swift response and help. Can you please help me to fix below issue.

    In the same database and table I have a field called "Issue_Date", in this field some rows are filled with dates and some are null. Now I want to get the count of null in the TexBox2 and in the Textbox3 I want to get the value (TextBox1 - TextBox2).

    Thanks in advance,

    Joshi

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Search for/Edit Records with a User Form
    By LONeill13 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-13-2013, 03:24 PM
  2. [SOLVED] To update stored records via user form
    By Shirly Percy in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-09-2012, 01:09 AM
  3. User Form VBA coding to enter, edit and add new records
    By SGS in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-22-2012, 03:59 AM
  4. Update records in a worksheet using a user form
    By crashhold in forum Excel General
    Replies: 3
    Last Post: 05-06-2011, 10:15 PM
  5. user form to add records to rows
    By jcarstens in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-24-2009, 10:11 PM

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1