Results 1 to 2 of 2
  1. #1
    MFS is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Mar 2009
    Location
    Ohio
    Posts
    235

    Print record based on field value.

    I posted this question on the Microsoft SQL Server Forum, But will try here as well.


    I'm currently working on a new project where a PLC on the plant floor is sending data to a SQL database table.
    Data comes into the database whenever the operator finishes a 'run', automatically.

    I'm using Access as my front end,
    What I'm looking to do is print the row of data the PLC is sending, only if a certain field value is equal to 1. In this case that field is named 'End_Of_Run'
    There 24 fields of data that I would like to have printed.

    Is there a way access can do this automatically ?
    is there another way this could be accomplished otherwise ?

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Code must be initiated by some event (such as form Open or button Click). If the tables were Access, perhaps with AfterInsert data macro. In SQL Server I think these are called 'Triggers'.
    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.

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

Similar Threads

  1. Replies: 7
    Last Post: 01-04-2018, 06:35 PM
  2. Replies: 3
    Last Post: 02-25-2016, 09:11 AM
  3. Replies: 5
    Last Post: 07-29-2014, 01:05 PM
  4. Replies: 5
    Last Post: 02-06-2014, 02:25 PM
  5. Replies: 5
    Last Post: 10-26-2011, 02:59 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