473,671 Members | 2,365 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 1057
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,569 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
3744
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 application contains couople of forms which have a consistant look and also shares SOME similar functionality between the forms.
2
2194
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 be used effectively if the application contains couople of forms which have a consistant look and also shares SOME similar functionality between the forms.
6
4819
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 Authentication set up and it worked just fine. Then I realized that I needed to have some pages unsecure. I then created 2 directories. One named Secure and the other named Public. I placed my web.config file in my
7
2329
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 in an array... Thus, if I have a programming routine that utilises $a several times, it is better to write the value contained in $a to something else, for example, $vartmp, and have my routine instead use this for its work... I believe
3
1208
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 open. --
1
1377
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 forms. For example, on my first form I have a question, a text box and a button. The user sees the question and then writes answer in the text box and then presses submit button.as soon as he
7
1201
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 order to get the form to post.Since Asp.net is browser independent ,how does the form know( within the confines of the xhtml or html specs)that it is supposed to go anywhere.(Even to itself) No "action" and no "value= Submit" attributes? ...
1
1029
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 this function as a sample just to handle the letter e. private void txtInput_keyPress(object sender, System.Windows.Forms.KeyPressEventArgs e) { if (e.KeyChar == 'e') { e.Handled = true; ...
1
1818
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 MDIMaster (and other forms), I want to get an instance of Forms (the only instance). Inside Forms then there are public variables for each of the possible forms, if a "form" has never been accessed the Forms factory creates a new instance of the...
2
1222
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 "new record". As is stands right now, I have to close the table and reopen it to see the information that I update. The text boxes are bound to the Table fields. 2. I have a second set of command buttons that are used like a "clicker", hit the...
0
8481
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8400
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8924
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
7441
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5702
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4227
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4412
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2817
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2058
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.