473,408 Members | 1,982 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

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_AfterUpdate()
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 1360

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

Similar topics

3
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...
4
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...
6
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?...
20
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...
3
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
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...
5
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...
6
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...
2
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...
3
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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
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...
0
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...
0
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...
0
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...

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.