Page 1 of 2 12 LastLast
Results 1 to 15 of 21
  1. #1
    nahum abramovich is offline Advanced Beginner
    Windows 7 64bit Access 2016
    Join Date
    Jun 2018
    Posts
    62

    help with table / query

    hi everyone


    I appreciate your assistance.


    I have 5 fields in the table:


    First Field - Colors
    Second Field - Shapes
    Third Field - Number
    Fourth Field - name
    Fifth Field - Record date (When I save the form...).

    NOW...



    in my table it is possible that we get several same records with the same shape and number and color values. (not for the name and not for the date).


    I want to add a field to my table (or other solution)
    Where I will only see the last record update (by date) with the same color shape name values .

    nahum

  2. #2
    nahum abramovich is offline Advanced Beginner
    Windows 7 64bit Access 2016
    Join Date
    Jun 2018
    Posts
    62
    I appreciate your assistance.


    I have 5 fields in the table:


    First Field - Colors
    Second Field - Shapes
    Third Field - Number
    Fourth Field - name
    Fifth Field - Record date (When I save the form...).

    NOW...

    in my table it is possible that we get several same records with the same shape and number and color values. (not for the name and not for the date).


    I want to add a field to my table (or other solution)
    Where I will only see the last record update (by date) with the same color shape
    number values .

    nahum

  3. #3
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,845
    always better to provide example data and the outcome required as your description is unclear

    you say

    we get several same records with the same shape and number and color values. (not for the name and not for the date).
    and
    I will only see the last record update (by date) with the same color shape name values .
    assuming your first description is correct, the usual way to do this would be to create an aggregate query (group by) grouping on color, shape and number and max record date

    then link this to your table on the four fields

  4. #4
    nahum abramovich is offline Advanced Beginner
    Windows 7 64bit Access 2016
    Join Date
    Jun 2018
    Posts
    62

    label appear

    HI

    thanks for your help!

    i need guidance for making text box or label appear (on form) when 4 condition (from query) is met - This is just for showing a sign that pops up (doesn't have to be text inside).

    i tried to do this with c
    [COLOR=var(--ytd-video-primary-info-renderer-title-color, var(--yt-spec-text-primary))]onditional Formatting but[/COLOR]
    my knowledge of Access is not so good...
    [B]i tried something like this.....(inside expression builder)....iif( [q]! [a]= "Danny" And [q]! = "Triangular" And [q]! [c] = "Red" And [q]! [d] > "1", "ATTENTION" , " " )

    i tried to do this also in label/text box control source .....
    And that's probably not the way to do it ...


    Would appreciate help

  5. #5
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,845
    take a look at your post - can you read it, I can't? Forget the text formatting and use the button options for quote and code. For data, go to the advanced editor and select the table option for tables, (bottom row on left)

  6. #6
    nahum abramovich is offline Advanced Beginner
    Windows 7 64bit Access 2016
    Join Date
    Jun 2018
    Posts
    62
    [B]hope that now is ok.....

    thanks for your help!

    i need guidance for making text box or label appear (on form) when 4 condition (from query) is met - This is just for showing a sign that pops up (doesn't have to be text inside).

    i tried to do this with conditional Formatting but my knowledge of Access is not so good...


    i tried something like this.....(inside expression builder)....

    iif( [q]! [a]= "Danny" And [q]! = "Triangular" And [q]! [c] = "Red" And [q]! [d] > "1", "ATTENTION" , " " )

    i tried to do this also in label/text box control source .....


    And that's probably not the way to do it ...

    Would appreciate help

  7. #7
    nahum abramovich is offline Advanced Beginner
    Windows 7 64bit Access 2016
    Join Date
    Jun 2018
    Posts
    62
    Sorry. I didn't understand what I needed to do.

    Please more detail

  8. #8
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,845
    instead of this

    conditional Formatting but my knowledge of Access is not so good...


    i tried something like this.....(inside expression builder)....

    iif( [q]! [a]= "Danny" And [q]! = "Triangular" And [q]! [c] = "Red" And [q]! [d] > "1", "ATTENTION" , " " )

    i tried to do this also in label/text box control source .....


    And that's probably not the way to do it ...

    Would appreciate help
    all you need is this
    conditional Formatting but my knowledge of Access is not so good...


    i tried something like this.....(inside expression builder)....

    iif( [q]! [a]= "Danny" And [q]! = "Triangular" And [q]! [c] = "Red" And [q]! [d] > "1", "ATTENTION" , " " )

    i tried to do this also in label/text box control source .....


    And that's probably not the way to do it ...

    Would appreciate help
    only use bold or underline to emphasise a particular word or phrase - otherwise it is just 'shouting' and puts people off

    first - you cannot conditionally format a label.

    second - you appear to have spaces (in red), missing a field in (in blue) and treating a number as text (in pink)

    iif( [q]! [a]= "Danny" And [q]! = "Triangular" And [q]! [c] = "Red" And [q]! [d] > "1", "ATTENTION" , " " )

    you also need to explain where this code is - is it in a controlsource? conditional formatting? vba?




  9. #9
    simonjoe is offline Novice
    Windows 10 Access 2003
    Join Date
    Apr 2020
    Posts
    1
    Quote Originally Posted by nahum abramovich View Post
    [B]hope that now is ok.....

    thanks for your help!

    i need guidance for making text box or label appear (on form) when 4 condition (from query) is met - This is just for showing a sign that pops up (doesn't have to be text inside).

    i tried to do this with conditional Formatting but my knowledge of Access is not so good...


    i tried something like this.....(inside expression builder)....

    iif( [q]! [a]= "Danny" And [q]! = "Triangular" And [q]! [c] = "Red" And [q]! [d] > "1", "ATTENTION" , " " )

    i tried to do this also in label/text box control source .....


    And that's probably not the way to do it ...

    Would appreciate help
    Thanks mate

  10. #10
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,845
    not sure what you are doing with your post (looks like you are trying to add your own formatting codes) but it makes it difficult to read - I was using the quotes to differentiate what you have compared with all that you need

    you have not provided the information requested

    you also need to explain where this code is - is it in a controlsource? conditional formatting? vba?
    nor have you addressed these issues

    second - you appear to have spaces (in red), missing a field in (in blue) and treating a number as text (in pink)

    iif( [q]! [a]= "Danny" And [q]! = "Triangular" And [q]! [c] = "Red" And [q]! [d] > "1", "ATTENTION" , " " )
    We cannot move forward until you have addressed both of these

  11. #11
    nahum abramovich is offline Advanced Beginner
    Windows 7 64bit Access 2016
    Join Date
    Jun 2018
    Posts
    62
    ok from the beginning.

    i need some TEXT to appear when 4 condition (from query) is met

    i want the TEXT to appear on my form

    bellow is what i tried to put inside text box control source.

    iif([q]![a]="Danny" And [q]![b]="Triangular" And [q]![c]="Red" And [q]![d]>1, "ATTENTION","")the result - #Name? inside text box

    I thought when its true - i will see on my form the word ATTENTION
    and when its false ill see nothing.
    Last edited by nahum abramovich; 05-06-2020 at 11:41 PM. Reason: forgot to put [b] in the second query

  12. #12
    nahum abramovich is offline Advanced Beginner
    Windows 7 64bit Access 2016
    Join Date
    Jun 2018
    Posts
    62
    ok from the beginning.

    i need some TEXT to appear when 4 condition (from query) is met

    i want the TEXT to appear on my form

    bellow is what i tried to put inside text box control source.

    iif([q]![a]="Danny" And [q]![b]="Triangular" And [q]![c]="Red" And [q]![d]>1, "ATTENTION","")the result - #Name? inside text box

    I thought when its true - i will see on my form the word ATTENTION
    and when its false ill see nothing.

  13. #13
    nahum abramovich is offline Advanced Beginner
    Windows 7 64bit Access 2016
    Join Date
    Jun 2018
    Posts
    62


    ok from the beginning.


    i need some TEXT to appear when 4 condition (from query) is met

    i want the TEXT to appear on my form

    bellow is what i tried to put inside text box control source.
    iif([q]![a]="Danny" And [q]![b]="Triangular" And [q]![c]="Red" And [q]![d]>1, "ATTENTION","")the result - #Name? inside text box

    I thought when its true - i will see on my form the word ATTENTION
    and when its false ill see nothing.

  14. #14
    CarlettoFed is offline Competent Performer
    Windows 7 64bit Access 2013 32bit
    Join Date
    Dec 2019
    Posts
    273
    Attach a sample file to understand what you've done and then help you

  15. #15
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,845
    try

    =iif([a]="Danny" And [b]="Triangular" And [c]="Red" And [d]>1, "ATTENTION","")

Page 1 of 2 12 LastLast
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 6
    Last Post: 03-14-2019, 03:39 PM
  2. Replies: 4
    Last Post: 04-07-2018, 11:55 PM
  3. Replies: 3
    Last Post: 06-01-2017, 06:57 AM
  4. Replies: 2
    Last Post: 01-20-2014, 12:50 PM
  5. Replies: 2
    Last Post: 10-27-2009, 07:09 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums