How to check what was entered on previous form

CM670

Registered User.
Local time
Today, 10:25
Joined
Oct 19, 2012
Messages
10
Hi,

I am wondering if anyone can help me with this.

I have a VB5 program where users can input information about a test to be performed on dogs. These are group, living conditions, individual. A test can be performed on a group living together, there living conditions or a single dog.

The user enters in a group code, a kennel code or a dogID depending on the tab they are on and press create test. I have included different cases for group, kennel and dogId which just show different messages depending on the whats entered. A new form should appear. On this new form i need to check if an dogID, group code or kennel code was entered on the previous form.

eg

if animal code entered on prev form then show owner details (from db) else if group code entered then show list of animals in group else if kennel code entered show kennel details


I would be really greatful if anyone has any ideas!
Thanks
 
You can use bookmarks to visit the previous record in a continuous form or move to the previous record in the form, capture the info, then move back to the current record. Record movement is very fast and the screen might flicker. There's screen flicker remedies. Alternatively yet, query the previous record to get your required info.
 
This is an Access forum. You should probably post this question to a VB5 forum. Access and VB5 work differently when it comes to forms. The fact that your data is in Jet/ACE is not really relevant. It could be anywhere and your question wouldn't change.

Does the original form close after it opens the second form? If it stays open, is there a way to reference a control on the form? Is there a way to pass a parameter from one form to another? Do you have a place to store global variables?
 

Users who are viewing this thread

Back
Top Bottom