ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Link file member in MS Access?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Link file member in MS Access?

    Hi,

    I know how to create a linked table in MS Access to point to the file in AS400, but if the file contains different file members, how can I create a link table for that specific member? I don't see anywhere in ACCESS to let me pick the file member other than the fields.

    Thanks!

  • #2
    Re: Link file member in MS Access?

    That is because you can not. The *First member is always used. You will have to use some other method, ie copy the member to a new file.
    Hunting down the future ms. Ex DeadManWalks. *certain restrictions apply

    Comment


    • #3
      Re: Link file member in MS Access?

      Try creating an alias

      Code:
      CREATE ALIAS library/aliasname 
      	FOR library/filename(membername) ;
      Then query the aliasname.

      Comment


      • #4
        Re: Link file member in MS Access?

        Thanks, that is a nice way to do it.
        Hunting down the future ms. Ex DeadManWalks. *certain restrictions apply

        Comment


        • #5
          Re: Link file member in MS Access?

          Originally posted by arrow483 View Post
          Try creating an alias

          Code:
          CREATE ALIAS library/aliasname 
          	FOR library/filename(membername) ;
          Then query the aliasname.
          Thanks, where to create the ALIAS? access or AS400? the command seems not working on AS400, or should be CRT ALIAS?

          Comment


          • #6
            Re: Link file member in MS Access?

            Create the Alias in QGPL or any other library that the MS Access has permissions to get to.

            Then, instead of calling the original FILENAME (that has multiple members) call the Alias (which references the specific member)

            -Rick

            Comment


            • #7
              Re: Link file member in MS Access?

              Hi, the CREATE ALIAS command is an sql command. So you with have to either use STRSL from a command line, STRQM or use Ops Nav.
              Hunting down the future ms. Ex DeadManWalks. *certain restrictions apply

              Comment


              • #8
                Re: Link file member in MS Access?

                Easiest way, IMHO.
                Open iSeris Navigator / Databases / Schemas / your-library / Aliases
                Right click, select New / Alias and fill in the blanks.

                Comment


                • #9
                  Re: Link file member in MS Access?

                  Originally posted by arrow483 View Post
                  Easiest way, IMHO.
                  Open iSeris Navigator / Databases / Schemas / your-library / Aliases
                  Right click, select New / Alias and fill in the blanks.
                  I got it and thanks a lot for all replied to my post

                  Comment

                  Working...
                  X