473,473 Members | 1,645 Online
Bytes | Software Development & Data Engineering Community
Create 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 1435
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
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...
2
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...
3
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...
10
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...
1
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...
4
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...
5
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...
7
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...
1
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
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
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,...
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
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,...
1
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...
0
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...
0
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...
0
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 ...
0
muto222
php
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.