Results 1 to 2 of 2
  1. #1
    shani908 is offline Novice
    Windows 11 Access 2019
    Join Date
    Feb 2023
    Posts
    24

    Microsoft Access Contact Template. Open and New Function

    Hello

    I am trying to recreate Contacts Template from scratch, to learn and improve my understanding of the system.

    When I open the Contact List , in Contacts Template, It shows the following code:

    =IIf(IsNull([ID]),"(New)","Open")

    Can somebody please explain what is this "(New)", ("Open") ? Is it some internal existing functions ?

    I also understand there is some associate Macro with click event, I have looked into it but couldn't figure out any utilization of this "Open" and "New" Function or string.

    Thanks
    Click image for larger version. 

Name:	contacts template.png 
Views:	22 
Size:	179.2 KB 
ID:	49741Click image for larger version. 

Name:	contacts onlick macro.jpg 
Views:	22 
Size:	82.2 KB 
ID:	49742

  2. #2
    Micron is online now Very Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,426
    If you had selected what looks like a textbox instead of the detail section of the form I'd have a better notion because the property sheet for the control would be in your pic instead. To me it looks like a calculated textbox where the expression evaluates to "(New)" if there is no ID value. If there is, it evaluates to "Open". One of those values would then appear in the control when in form view.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 1
    Last Post: 02-12-2023, 07:36 PM
  2. Access Contact Template, Full name
    By shani908 in forum Access
    Replies: 5
    Last Post: 02-03-2023, 11:19 AM
  3. Replies: 1
    Last Post: 09-14-2021, 10:03 AM
  4. Replies: 2
    Last Post: 01-15-2018, 07:46 PM
  5. Replies: 2
    Last Post: 11-17-2014, 06:00 PM

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