473,581 Members | 2,757 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Access continuous form combo/list box multi tables

RockKandee
89 New Member
I am using Access 2013 on Windows 8.

I have been stuck now for days trying to figure out how to make this work. I have looked at the articles for form filtering and cascade filtering. Code is very new to me and I am having difficulty understanding the examples in code. The situation I am working on right now, I haven't been attempting code use at all.

I need to make a continuous sub form work while not duplicating fields in tables.

The main form is one record from a separate table and the sub form is all the parts connected to that main record.

The sub form involves 3 tables connected by a name field.

Table 1 - Name, type, location info/details
Table 2 - days, hours availability (separate record for each day and time slot)+ name, type
Table 3 - all of table 2 plus other info

The sub form is bound to table 3.

If I keep the tables as above, then I have no issues with the sub form.

I enter type and date then a combo box with the below code gives me matching names to choose from.

Expand|Select|Wrap|Line Numbers
  1. SELECT Table2.Facility, Table2.DayofWeek FROM Table2 WHERE (((Table2.Type)=Forms!MainForm!SubForm.Form!Type) And ((IIf((WeekdayName(Weekday([Date]))<>[DayofWeek]) And ([Type]="Pool"),True,False))=False)); 
It makes more sense to have name and type in one record of table 1, and ID fields in table 2 and 3, but then I can't get the form to work. It does not like it when I use an ID field instead of the name.

I am lost as to how to make this work without duplicate fields in tables.

I would like to keep it as a continuous form so I can see all of the parts I am adding to the main form.

There is more to the sub form, but this is where I am stuck right now.

I hope I provided enough information and was clear. My apologies if not.
Dec 16 '13 #1
4 1445
time2hike
68 New Member
RockKandee, assuming that your table 3 contains the ID Field for Table 1 and 2 and that you are only trying to update data in Table 3 you should be able to have a continuous sub form that contains combo boxes for the selection of information from Table 1 or 2. Is this what you are doing?
Dec 16 '13 #2
RockKandee
89 New Member
I have it working - not sure it is the best solution though.

In table 3 I gave the type a different name.
I removed the type from table 1 (not sure this effects the form)
The name is only in table 1

Expand|Select|Wrap|Line Numbers
  1. SELECT Table2.ID, Table1.Name, Table2.DayofWeek FROM Table1 INNER JOIN Table2 ON Table1.ID = Table2.ID WHERE (((Table2.Type)=Forms!MainForm!SubForm.Form!NEWnameType) And ((IIf((WeekdayName(Weekday([SessionDate]))<>[DayofWeek]) And  
Maybe the fix was changing the name?
Dec 16 '13 #3
RockKandee
89 New Member
time2hike: Yes, your description sounds accurate for what I am doing.
Dec 16 '13 #4
RockKandee
89 New Member
I still need to work on getting type out of table 3 it should connect with the id field for table 2 (which is a separate id than the one discussed above) - I will focus on this now that I have less things running around in circles in my head.
Dec 16 '13 #5

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

Similar topics

1
2419
by: D Boyd | last post by:
Im trying to get the name of a bound control on a continuous form in Access. So that I can get the value of any text field. This is what Im looking to do.... The user enters a value for number of entries for a specific month in column1, column2 is the value for number of entries used Year to Date. So I am looking to calculate column2 with...
2
1704
by: crcucb | last post by:
I know Access struggels with having a different look in each record in a continuous form. I am looking to work with a list of data and have some records indented, to designate they belong under the parent record. Sort of like a tree view. Any way to make this happen?
3
3024
by: laurenq uantrell | last post by:
I have read all the previous posts on this subject and just want to make sure I have exhausted all possibilities before trashing this concept... I have an Access (2K) database with a SQL Server backend. I have a table on SQL Server that has a column that is used to hold small icons with datatype image. This table links to others to form...
10
3411
by: DFS | last post by:
I'm sure this has been discussed before, but I'm too tired to hunt for it. I have a survey table containing questions with different answer scales. Some are 1 to 5, others are A,B,C, etc. I show these answer scales in a listbox. When the scale type changes, the list items should change. Problem is, the bound continuous form shows for...
1
2805
by: bbcdancer | last post by:
Is it possible to restrict the length of a text box in MS Access using VBA on condition to what is selected in a list combo box. Scenario: 1. I have a list combo box containing: AA BBB CCCC
4
64564
Rabbit
by: Rabbit | last post by:
Cascading Combo/List Boxes This tutorial is to guide you in the creation of Cascading combo/list boxes. That is when you have multiple combo/list boxes where the selection of an option in one determines the available options in the other. TERMINOLOGY Row Source: The table/query from which the Combo Box or List Box gets its values. Note:...
5
7380
by: eighthman11 | last post by:
Hi everyone: This is probably a pretty simple problem but it is driving me nuts. Using Access 2000. I have a continuous form which list several thousand inventory items. The user can enter a order quantity on any given line. I have several different error checks depending on what the user enters in the quantity text box. What I need...
7
26103
by: ggfota | last post by:
I have problem creating Access (Continuous) Form with indepenent CheckBox for each record. The user should be able to select records that will be processed by VBA based on ChceckBox value. When I use Table as a source then there's no problem. I have field of Yes/No values, and I'm able to select each record inependently. But when I want to use...
1
3875
realayumi
by: realayumi | last post by:
ACCESS 2003 WIN XP Hi, i'm new in access, just a view days, this is my first post. Sorry for my bad English. I have 3 tables. tbl_product
0
7876
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...
0
7804
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...
0
8156
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. ...
0
8310
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...
1
7910
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...
0
6563
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...
0
5366
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...
0
3809
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...
0
1144
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...

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.