473,796 Members | 2,729 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Need help beginning new project

1 New Member
Dear All,

I am fairly new to access tho I have a fair bit of experience with VBA in excel. I am wanting (amongst other things!) to design a form with a subform on it to show certain business enquiries. The subform to show all of the enquiries (not editable) in a continuous form view with the header field also having text boxes which filter the data (ie searching for Last Name etc). The rest of the form to show all the details (editable) of the enquiry selected in the subform.

I have managed to do the first subform which works on its own but will not filter when it is a subform of a main form. Or it will filter the whole "Main" form results but not filter the list of results on the subform.
Expand|Select|Wrap|Line Numbers
  1. Dim szLastName As String, szCrit As String
  2.  
  3.          szLastName = "*" & Nz(Me!LastName, "") & "*"
  4.          szCrit = BuildCriteria("LastName", dbText, szLastName)
  5.          DoCmd.ApplyFilter , szCrit
As I am learning as I go along here, I would mainly like some advice of the best ways of doing this, Im not looking for full coded solutions.

Thanks in advance,
Tom
Sep 21 '08 #1
3 1319
FishVal
2,653 Recognized Expert Specialist
Hello, Tom.

Try to filter subform's form using its Filter and FilterOn properties.

Regards,
Fish
Sep 21 '08 #2
NeoPa
32,579 Recognized Expert Moderator MVP
It is also possible (general even) to link a subform to the main form on a (or some) fields. That way, any filtering on the main form is passed on automatically to the subform.
Sep 22 '08 #3
nico5038
3,080 Recognized Expert Specialist
To elaborate on Neopa's comment, just single dick the sub form and open the properties by pressing the properties button.
Under the Data tab you'll find two "linkage" properties, one for the "master" and one for the "Child".
Following The Wizzard these fields will be filled for you, but you can also set them manually.
This comes in handy when you want to link to an unbound form control, like a combo box.

Nic;o)
Sep 23 '08 #4

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

Similar topics

2
2125
by: Clément | last post by:
Hello, i'm new to c++ and to linux, i have to develop a full web browser. I don't really know how to start and i'd like to know if any of you would have some kind of working plan/structure in mind. I was thinking of using the GTK+ library , is it a good idea?? What's more i have to program an HTML interpretor, maybe an image loader, and if i have time, a javascript compilator. Any idea to help me begin that projet ??? Thank you,
6
1457
by: Marlene Stebbins | last post by:
My hobby project is a library of routines in C that do big integer arithmetic. I've been working on it for several weeks and it now consists of about 1200 lines of code. I've got addition, subraction and multiplication working, but there is a problem with division. I think my algorithm is OK; it's nothing fancy, just grade school long division. It crashes with a seg fault on some inputs and produces the correct result with others. Despite...
48
3248
by: Chad Z. Hower aka Kudzu | last post by:
A few of you may recognize me from the recent posts I have made about Indy <http://www.indyproject.org/indy.html> Those of you coming to .net from the Delphi world know truly how unique and "huge" Indy is both as a project, in support, development, and use. But Indy is new to the .net world. Indy is a HUGE library implementing over 120 internet protocols and standards and comes with complete source. Its an open source project, but not...
13
2116
by: vincent | last post by:
I made the suggestion "Need built in obfuscation support in C# compiler" to Microsoft. Anyone here agree with me? If yes, please cast your vote on this suggestion to raise its priority.
1
1143
by: Zenobia | last post by:
Hello, I'm trying to run a sample project that came with Stephen Walther's book "ASP.NET Unleashed (1e)", Chapter 31 - "Creating an Online Store." I opened Visual Studio. Started a new project called "aspnetstore" in the webroot. I copied all the files over (using Windows Explorer)
0
1301
by: RaiderXCChamp | last post by:
Hi! I am supposed to create a program that will display an investment schedule in a list box for my Visual Basics Class. 1. It says that annual interest is calculated using the simple interest formula: Interest = (Beginning Balance + Annual Investment) * Rate Assume the Investment Rate is entered and displayed as an annual rate. This formula also assumes the annual investment is made at the beginning of each year. 2. Include column...
5
1626
by: jhhbr549 | last post by:
I have a problem. My teacher of Java is jumping all over the book and then gave us this project. Well I got the project to run. But he wants the output in a box with an ok button on it. He gave us the code and said just put it in the class and it will do the rest. Well as you guessed it does not. please look at this and let me know how to get it in the box. Thanks John- JHHBR549@aol.com public class TwelveDays {//beginning of the...
7
2239
by: Gladen Blackshield | last post by:
Hello All! Still very new to PHP and I was wondering about the easiest and simplest way to go about doing something for a project I am working on. I would simply like advice on what I'm asking so I can go and learn it myself through doing (best way for me). I am building a card game as a learning-project as it involves many (to most of the) things that I would like to learn to do with PHP.
1
1261
by: breckj | last post by:
Beginning question about selecting software to set up my work environment. I have undertaken a website revision project after not programming for about 6 years. I am beginning to set up a work environment on my pc, and have questions about the software being used verses what could be the ideal software. My background is that I am familiar with classic asp pages, not asp.net. I am also familiar MS Interdev (but am unable to locate my...
1
2106
by: javabeginner123 | last post by:
i have a java prob, and i have to solve it fast, but i'm just getting to know it, so plz help me solve it with full code completed, thanks so much. the prob is to create a monter fight and there is the description: The monsters are of a very strange kind, called "Bigmon". They have some basic characteristics, like attack and defense power, life points, a name, and a bonus factor that is used in special occasions. In this initial phase of the...
0
9685
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
9535
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
10465
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
10242
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10021
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...
1
7558
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6800
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();...
2
3744
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2931
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.