473,776 Members | 1,505 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to look-up a read-only subform via a linked field in a form...

Hey all. if anyone is REALLY bored please help moi. I am new to
access stuff and am probably missing something obvious here.
I have 2 tables that are linked via "number" in the relationship area.
The relationship is many to many. One is a master form and the other
I dragged in to be a subform. I also created a child/master link
based on the common "number" field. So, it's a generic subform pretty
much.

What works: when I scroll through the entries, the main form and the
subform are in sync and the data reads out fine.

What doesn't work: what I really want to be able to do is use the
subform as a read only form such that on the main form when I create a
new entry and type something into "number", I will immediately be able
to see the contents of the corresponding subform (there are several
contents per "number" as the relationship is many to many). But,
instead what happens is that a new value is created in the subform
that is empty. What is interesting though is if I then afterwards
create another entry in the main form, then go BACK to the previous
entry, the subform is updated and all of the child entries are stored
there (including the empty one I just created).

The reason why a new entry in the subform is created is because I was
trying a requery statement attached to "number" on the main form:
Private Sub Number_AfterUpd ate()
Me."Subform name".Requery
End Sub

- so this is on the right track but as it immediately looks up the
number field in the subform but it creates a blank entry and doesn't
simply look-up the info.

Also, Is there any way to lock a subform only as when I make the
subform properties set to lock, it locks the actual form itself too...

Thanks for any suggestions.... ............... ............... ..........
Nov 12 '05 #1
0 1387

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
5144
by: inhahe | last post by:
Hi i'm a newbie at this and probably always will be, so don't be surprised if I don't know what i'm talking about. but I don't understand why regex look-behinds (and look-aheads) have to be fixed-width patterns. i'm getting the impression that it's supposed to make searching exponentially slower otherwise but i just don't see how.
4
9049
by: Videos 4 Sale | last post by:
Would you know how to change the look of a mouse pointer on a web page. On the page I have the mouse pointer is exactly as I have at work.... white. But what I want to do is change the look of it so that the people who visit the web page see a neon arrow (example) as opposed to what they see now (which is the white arrow) Any Ideas? Its driving me batty. Many thanks
6
2124
by: MLH | last post by:
You know how the text in the attached label sort of 'greys out' when you click something that sets MyTextbox.Enabled = False? I would like to make a label's text look like that? How do I do it? It look sort-a-like sunken text or shadowed - I don't know what.
20
2222
by: Maurice | last post by:
Hi all, I have an application, designed in Visual Studio 2005, which will run mainly on Windows XP computers. If I run the application on a Windows XP computer having the Windows XP Theme selected the controls look nice rounded, etc. just like in Windows XP. But if I run the application on a Windows XP computer having the Windows
3
1086
by: Lukas Kurka | last post by:
Hi, i would like to extend some ASP.NET controls but to do that I would like to see what is really happening inside. Is there a tool to take a look inside ASP.NET controls? Thanks Lukas
3
1376
by: Pascal Cloup | last post by:
Hi, all the installers that i create with VS2005 (with deployement projects) have a flat look and feel under windows XP (flat rectangle buttons). Even the installers created with VS2003 (and which have a correct appearance) have a flat look once updated with VS2005. Someone have an idea?
5
2183
by: Neil Cerutti | last post by:
For use in a hand-coded parser I wrote the following simple iterator with look-ahead. I haven't thought too deeply about what peek ought to return when the iterator is exhausted. Suggestions are respectfully requested. As it is, you can't be sure what a peek() =None signifies until the next iteration unless you don't expect None in your sequence. Using itertools.tee is the alternative I thought about, but caveates in the documentation...
6
2204
by: =?Utf-8?B?TWFuaXNoIEJhZm5h?= | last post by:
Hi, I am using ASP.NET 2.0.So is it possible to give windows XP Look and Feel to my ASP.NET AJAX Website irrespective of operating system in which browser of end users are running.I want to do this without using third-party component. I have searched high and low on the internet but i am not able to find any solution without using third-party component. Any insights on this would be highly appreciated. Thanks in advance for replying(as...
2
6979
by: =?Utf-8?B?SmlheWlu?= | last post by:
I am now trying to host a WPF control into a MFC application and get the Aero glass look on the WPF control. (Something like what Office2007 is doing to its ribbon) What should be the container of the WPF control so that I can get Aero Glass look? I tried with a System.Windows.Window, I got the Aero Glass look. But it seems that a Window must be the root element and can not be hosted in the MFC window. I also tried to use a...
3
1863
by: Kevin | last post by:
With VS2005 the look and feel of dialogs created with MFC and Windows Forms is different. E.g. still of checkboxes, buttons, etc. Is it possible to achieve the same look and feel with both MFC and Windows Forms? TIA, KK
0
9628
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
9464
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,...
1
10061
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9923
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8952
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
5367
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...
1
4031
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
3622
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2860
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.