473,805 Members | 2,297 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Multiple table join as form recordsource

4 New Member
I created an SQL statement, left joining three tables. When I use the statement as the recordsource for my form in datasheetview, I cannot input data into any of the fields. Can anyone help me with this?

Here is my SQL statement:

strSQL = " SELECT tblAccounts.sNu mber, tblAccounts.sNa me, tblAccounts.sTy pe, tblUnAdj.sngUnA djDR, tblUnAdj.sngUnA djCR, tblAJESummary.s ngAJEDR, tblAJESummary.s ngAJECR " & _
" FROM (tblAccounts LEFT JOIN tblUnAdj ON tblAccounts.ixI D=tblUnAdj.intA ccount) LEFT JOIN tblAJESummary ON tblAccounts.ixI D=tblAJESummary .intAccount; "

Me.RecordSource = strSQL
Aug 23 '08 #1
2 3173
missinglinq
3,532 Recognized Expert Specialist
Assuming that the form's AllowEdits/AllowAdditions are set to Yes, and, if on a network, you have permission to write on the particular folder the db is in, Allen Browne, the "Wonder from Down Under," has an excellent article at this link explaining why queries are read-only.

Welcome to Bytes!

Linq ;0)>
Aug 23 '08 #2
nico5038
3,080 Recognized Expert Specialist
The general solution to this "problem" is to define a main form, sub form and sub-sub form.
Thus one form for each table.

Nic;o)
Aug 24 '08 #3

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

Similar topics

1
7912
by: Dave | last post by:
Thanks in advance for you help. SQL Server 2000 I have a complex join, but a simple example will do the trick so... table1 (placement records, possibly many per case,highest ID being most recent) ---------- placementID(pk) * CaseID(fk) * OrganizationID(fk) * Name * Number
1
2023
by: Steve Miles | last post by:
I've got a form with a combo box and begin/end dates. When any of the three are changed I set a subform's recordsource so the records returned are filtered based on the three fields. The syntax I'm using is: Me.{subform-name}.Form.RecordSource = "Select * from tbl..." ....including the three fields in the SQL Where clause. This method works well, but mysteriously stops returning any rows once in a while. I can hard-code the SQL to...
9
12991
by: jaYPee | last post by:
I have search a lot of thread in google newsgroup and read a lot of articles but still i don't know how to update the dataset that has 3 tables. my 3 tables looks like the 3 tables from northwind database that has an employees, orders, and order details. the following are the 3 tables in my sql database students schyrsem
3
7100
by: Dragon | last post by:
Can I Join two Data Table in Data set ?? Is it using the DataSet.Merge ? Any example ?
1
2875
by: chiume | last post by:
First thank you very much for all your helps, and pls. Ok, this is what I am trying to do:, 1) I am trying to get the number of employees that has completed all their online training within 10 days of hire 2) All the employees that are has no exception(no pre-service training) and has completed their checklist within 10 days 3) all the exception(pre-service) employees that has completed their training within 70 days.
8
8162
by: JReneau35 | last post by:
I am a novice to MS Access. I have about 10 to 15 tables that link to a single form. I use unique ID's to link all of these tables together. Since the ID for the customer never changes, I was hoping that someone could give me a hand and let me know if it is possible to add/update multiple table fields with a single textbox in a form. Thanks, JReneau35
2
11978
by: headache | last post by:
Greetings. I'm a first time poster, so feel free to clue me in to any protocol I may have inadvertently violated. I have an issue that has arisen where I need to join 3 tables where 2 of the 3 contain ambiguous data. Table 1 is the entity with PK as a primary key. Table 2 is using PK as a foreign key. Table 3 is using PK as a foreign key. Tables 2 and 3 are only related through that foreign key and contain dissimilar data that relates...
5
7679
by: abolos | last post by:
Hi, I have an unbounded form with an unbounded text box. In the event On Open I have this code: Form.RecordSource"select last(kmprice) from tblmilageprice". The question is: How can I fill the text box with the result of thid code? Thanks, Abolos
3
3575
by: davenumber40 | last post by:
I’m creating a small database in Access 2003(XP) to track issues during software testing. As far as databases go, it’s going to be a relatively small, short term project (No more than 20,000 records in the main table over about 2 months). I have a main table (Issues) that is populated by a form (IssueAdds). On my form there is a combobox to select Opened by (who created the record). That list is populated by a table called Contacts. Here...
0
9718
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
9596
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
10617
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
10364
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
10109
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
5545
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...
0
5678
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4328
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
3849
muto222
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.