Results 1 to 6 of 6
  1. #1
    Mehvan's Avatar
    Mehvan is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2016
    Posts
    133

    Post relay invoice even no one can edit it


    Hello Everyone
    How can I relay invoice number even no one can edit it ?
    for example :

    I have 10 invoice number or more , I want relay number 1 or 2 or some of them , when I relay that invoice number , no one can edit it , even I do cancel for that relay to edit it .

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,549
    What do you mean 'relay'?
    you can display form data as read only.
    either set the form as snapshot,
    or
    open it in read only mode via Docmd.openform "fMyForm",.....

  3. #3
    Mehvan's Avatar
    Mehvan is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2016
    Posts
    133
    Click image for larger version. 

Name:	Capture.PNG 
Views:	15 
Size:	5.7 KB 
ID:	36317
    when I check on Relay to relay this invoice number , it makes this invoice no one can edit it , even we do uncheck to this invoice number , then we can edit it
    I used this code , but not so useful :

    Code:
    if [Relay] = -1 then
    msgbox "you can not edit this invoice"
    docmd.cancelevent
    End If
    I used this code but it made every invoice can not do work in .
    Code:
    if [Relay] = - 1 then
    msgbox "you can not edit this invoice"
    me.AllowAdditions=false
    me.AllowDeletions=false
    me.AllowEdits=false
    else
    me.AllowAdditions=true
    me.AllowDeletions=true
    me.AllowEdits=true
    End If
    Attached Thumbnails Attached Thumbnails Capture.PNG  

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,646
    Right, setting these properties affects ALL records. What event did you put code in? Try Current event.

    Is it Relay or Repay?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #5
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,850
    Is simple terms what does Relay mean? Please provide an example to show exactly the input and desired output from checking the Relay or is it RePay box?

  6. #6
    Mehvan's Avatar
    Mehvan is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2016
    Posts
    133
    thanks a lot June7
    solved it now

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

Similar Threads

  1. Replies: 4
    Last Post: 10-01-2016, 09:19 AM
  2. Replies: 2
    Last Post: 09-14-2015, 09:01 AM
  3. Replies: 30
    Last Post: 07-03-2014, 01:22 PM
  4. Replies: 3
    Last Post: 11-19-2012, 05:05 PM
  5. Replies: 1
    Last Post: 10-10-2012, 01:05 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