473,385 Members | 1,798 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,385 software developers and data experts.

How is a report connected to a table other than record source?

Hi all,

I am new to Access, I know a little VBA. I am trying to revise an existing Access+VBA code. I have an access report, the source data of the report is a table named Z101. I reviewed all of the VBA codes and macros and this file is never updated. However when the following comment is hit, I got an error message about another table, named Z2.
DoCmd.OpenReport "report1", acViewPreview

Z2 is updated many times in the VBA codes. My guess Z101 and Z2 is somehow connected but I couldn't find how.

Any ideas?
Feb 19 '13 #1
4 1369
Seth Schrock
2,965 Expert 2GB
What is the exact error description and number? Is it possible that you have a query named Z101 that is the report's record source instead of the table?
Feb 19 '13 #2
TheSmileyCoder
2,322 Expert Mod 2GB
A simple basic report is based on a table or a query. You can find the table name/ query name / SQL in the reports Recordsource property.

If it is a query or SQL then it is possible the query is based on more then 1 table.

Another possibility is that there is code running that is opening a recordset and then assigning the recordset to the report. Try using Find in the VBE and search for keyword "Recordset"

A third possibility is one of the controls has controlsource using Dlookup to reference a secondary table.

A fourth possibility is that the report contains a combo or listbox that has a ROWsource based on a secondary table.

A fifth possibility is that there is code running as part of the report opening or other report events such as Detail_Format that calls upon a secondary table.
Feb 19 '13 #3
Appreciated all of your help. Figured that there was a query connecting Z101 to Z2. Thank you very much!
Feb 19 '13 #4
TheSmileyCoder
2,322 Expert Mod 2GB
Your welcome. Seth and me are happy to help.

Figured that there was a query connecting Z101 to Z2. Thank you very much!
Just to be clear on terminology: The correct term is JOINED, not connecting, though I do understand what you mean. The more technical issues, it gets increasingly important to be accurate about the terms used.
Feb 19 '13 #5

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

Similar topics

1
by: Sham | last post by:
I have a form that is used for entering data. The problem is I have several tables, so I need some way to change the form's record source via combo box. 1. How can I make the combo box look for...
1
by: Justin Koivisto | last post by:
I am trying to create a report that displays a name of an advertising source and count of the number of times it was hit between certain date ranges. The data is split between two different...
3
by: eddiec | last post by:
hi everyone, I have a report in an adp that uses aggregate functions in its record source and I am trying to figure out how to filter the records displayed in the report: DoCmd.OpenReport...
2
by: Lyn | last post by:
If I have a form where the RecordSource property is set to the name of a table, then on opening the SingleForm form I can cycle through all the records in the table one at a time via Next and...
6
by: John | last post by:
Hi Is it possible to change the record source query of a report at runtime via code so the report can work with different data source queries? Thanks Regards
6
by: ApexData | last post by:
I have 2 tables: Table1 and Table2. Neither one has a primary key because each table will only have 1-record. My form is a SingleForm unbound with tabs (my desire here). Using this form, in...
1
by: Robert | last post by:
I have a form that has a table; tblProjects; as its record source. The form is filtered, however, by two combo boxes in the header. One allows the user to select a client, the other a project for...
1
by: Peter Herath | last post by:
I have created a report using sample codes taken by the forum. one problem is that the report displays the field/column names in the table in columnar format(field names display in rows.) but i want...
1
by: jglabas | last post by:
For a report, I am using a query as my record source. The query produces 5 columns by 3272 records. The data in columns 1 & 2 (“Objective” and “Rating”) repeats every 409 records The data for...
30
by: CD Tom | last post by:
I found Stephen Lebans modReportToPDF and have been trying to get it to work in my application. I've downloaded his database and when I run his test it works fine. I then added it to my application...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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,...

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.