473,513 Members | 2,665 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Question about forms

266 Contributor
I have a form that i made that is going to be used on a handheld tablet pc in the field for inspecting hydrants. The screen is small so the main form just displays the most commonly used info. What i would like is another form that displays more details such as specific parts of the hydrant and if any repairs need to be done. right now i have created another form based off of the same table just showing the different fields that i want. the problem is, is that that form is not referring to the same record currently open in the original form. it just defaults to the first record in the table. any suggestions on how to get that second form to always open to the same record as the first form, or any suggestions on a better way to do this as i am getting stuck here lol... thanks for your help and sorry if i typed this too confusing.
Jul 22 '10 #1
3 1050
patjones
931 Recognized Expert Contributor
I'm going to assume that you're using DoCmd.OpenForm to open the second form. If that's the case, take a look at the fourth (optional) argument. This allows you to build a WHERE condition into the opening of the form so that the form opens on a record (or set of records) specified by you rather than just the first record.

Pat
Jul 22 '10 #2
NeoPa
32,557 Recognized Expert Moderator MVP
I would consider opening both forms at once, but ensuring the form for the extra details is set invisible upon opening. A button on the main form would set the filter of the second form and then show that form at the same time as hiding itself. There would be a button on the second form that, when you're done looking at the details, would switch back in the same way except it wouldn't touch the filter of the main form.

Does this sound like it could work well on a hand-held?
Jul 22 '10 #3
FishVal
2,653 Recognized Expert Specialist
@zepphead80
Just instantiate form class object and this will give you access to form's instance properties/methods.

See also this article

Regards,
Fish
Jul 24 '10 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
3724
by: KK | last post by:
Windows Forms Inheritance, Incomplete? I was playing around with Windows Forms and found out this Forms Inheritance feature. The moment I saw that, I felt this can be used effectively if the...
2
2173
by: KK | last post by:
** Posting it here cause after couple of days no body responded.** I was playing around with Windows Forms and found out this Forms Inheritance feature. The moment I saw that, I felt this can...
6
4797
by: Billy Jacobs | last post by:
I have a website which has both secure and non-secure pages. I want to uses forms authentication. How do I accomplish this? Originally I had my web.config file in the root with Forms...
7
2312
by: Randell D. | last post by:
Folks, I have a Javascript performance question that I might have problems explaining... In PHP, better performance can be obtained dealing directly with a variable, as opposed to an element...
3
1198
by: Nick J | last post by:
Hi, I would like to have a command button on Form 1 that opens another form (Form 2), then closes Form 1. I tried the DoCmd.close after the open form code but it closes the form its trying to...
1
1370
by: Sunil Sabir | last post by:
Dear All, I have 4 web ASP.net Forms. I use a image control to move between these forms.The problem I am facing is that I cannot preserve the state of the form when moving between different...
7
1194
by: ampeloso | last post by:
Hello, I'm trying to understand how a aspx form gets submitted to the server when there is no action attribute. I am under the impression you would need some kind of html valid button attribute in...
1
1021
by: surgesm | last post by:
I've been trying to create a textbox that will eventually create a calculator. I'm trying to get it to ignore characters. I'm not sure where to put this function to get it to work. I currently have...
1
1812
by: Troy Bull | last post by:
Greetings I am trying to use a singleton to hold a group of forms. I have a MDIMaster form. I have a class called Forms; Forms is a singleton. I want to do something like the following. In...
2
1212
by: RevJohn | last post by:
Basic Access User. Using Access2003, I am attempting to do several thnigs, and they are: 1. I need the information I place in the form to show in the Table once I use the command button to go to...
0
7257
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7157
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7379
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7535
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
5084
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4745
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3221
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
798
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
455
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.