Solved

Parking and Unparking Transactions Help

Posted on 2006-07-07
2
743 Views
Last Modified: 2010-04-30
Hi Experts

I am making POS software for a company.

My software is uses SDI.

My software can handle multiple transactions but my client wants to be able to park/unpark transactions and I don’t know how to do it.

When you start a new transaction each form has a Transition ID and that is carried through all the form menus for that transaction.

I was thinking about getting my program to loop through all the forms and hide all the forms that have the Transaction ID the user wants to park but I don’t know how to do that or how i would get the forms back after they are hidden

I would be very grateful for any advice/assistance

Thanks

Nothern_Lights
0
Comment
Question by:Nothern_Lights
2 Comments
 
LVL 20

Expert Comment

by:hes
ID: 17061464
If you mean by park/unpark suspend resume then you write all the data you have captured up to that point to the data base. Then when you resume the transaction you retrieve the transaction data and continue at the point it was suspended.
0
 
LVL 6

Accepted Solution

by:
junglerover77 earned 500 total points
ID: 17067680
To access all forms of your VB6 application, you can just use the Forms collection.

Add 3 forms in an project, put 2 command buttons in form1, then paste the following code in form1:

Private Sub Command1_Click()
    Dim oForm As Form
    For Each oForm In Forms
        If oForm.Name <> "Form1" Then oForm.Hide
    Next
End Sub

Private Sub Command2_Click()
    Dim oForm As Form
    For Each oForm In Forms
        If oForm.Name <> "Form1" Then oForm.Show
    Next
End Sub

Private Sub Form_Load()
    Form2.Show
    Form3.Show
End Sub
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now