Solved

Parking and Unparking Transactions Help

Posted on 2006-07-07
2
741 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

757 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

21 Experts available now in Live!

Get 1:1 Help Now