×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Open UI + scroll

Open UI + scroll

Open UI + scroll

(OP)
Hello all
I would like to ask the professionals here in this group how to open up an accpac 5.1 form (e.g. PO Entry) and scroll it to a specific record (PO #) Using VB
Thanks in advance
Solomon

RE: Open UI + scroll

Add a reference to the ACCPAC xAPI 1.1 library.

Create and open a session object. See Thread631-583563 and Thread631-538503 for examples.

Code will be basically as follows.

   Dim myPOnumber as string
   Dim POPOR As ACCPACXAPILib.xapiView
   
   myPOnumber=???
   Set POPOR = Session.OpenView("PO0620", "PO")
   With POPOR
      .Browse "PONUMBER = " & myPOnumber & "", True
      If .Fetch Then
         Debug.Print .Fields("PORHSEQ").value
         Debug.Print .Fields("PONUMBER").value
         Debug.Print .Fields("DATE").value
         ...
      End If
      .Cancel
   End With
   Set POPOR = Nothing

Thanks and Good Luck!

zemp

RE: Open UI + scroll

(OP)
Thanks zemp for the info
But what i need is to display the accpac UI and then scroll to the PO i want.
The code you wrote just opens the underlying dataset not the form
Solomon

RE: Open UI + scroll

I don't know of any way that you can get access to a specific ACCPAC form from VB.

Through the VB xAPI you would need to create your own form to display the information.

Thanks and Good Luck!

zemp

RE: Open UI + scroll

I have added a new FAQ FAQ631-4231 to demonstrate what you want to do in VBA macro.
In this thread Thread631-660336, sixtyone provided sample codes for opening ACCPACCOMAPI sessions in VB.
Combining the two piece of information you should be able to do what you want in just a few lines of code.

------------
rvspy@nospam.htomail.com

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close