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

Temporary table in read-only database

10
Hi,

I need to generate a Report. Unfortunately the report can not be constructed from calculated data. My data is populated only in the ValueList type ListBoxes.

So I decided to create a temporary tables, move the data into these tables and use them to build the Report.

The problem is that I need to be able to generate the Report also when the MDB file is set as read-only.
Is there a way to have those tables only in memory or any other way to generate the Report?

Thanks a lot
juing
Jul 14 '09 #1
7 3554
ChipR
1,287 Expert 1GB
Is original data added to the list boxes manually each time the database is used, or is it derived from some stored information?
Jul 14 '09 #2
juing
10
@ChipR
List Boxes are generated dynamically according to data chosen in the form which contains them.
Jul 14 '09 #3
ChipR
1,287 Expert 1GB
Take a look at this link: http://www.mvps.org/access/reports/rpt0014.htm. If you use a global recordset variable, I believe you can store your data there, and set the report's source data to that recordset when you open it.
Jul 14 '09 #4
juing
10
@ChipR
Thanks, I've already found this. In that example, the source of the Recordset is a QUERY and thus it is possible to assign it to the Report.

I've already tried to manually open an ADODB.Recordset, create some fields there, add some records but haven't found any way hot to assign it to the Report's RecordSource property :(
Jul 14 '09 #5
ChipR
1,287 Expert 1GB
If you're able to create the recordset, what's the problem you encounter when you set the report's record source to the recordset as in the link?
Jul 14 '09 #6
ChipR
1,287 Expert 1GB
It looks like the name property is read-only, and I can't figure out what sets it. Maybe if you were to .Save the recordset to a file and reopen it?
Jul 14 '09 #7
juing
10
VBA help says:
"The RecordSource property setting can be a table name, a query name, or an SQL statement. For example, you can use the following settings."

That exactly is in the example since the Name property is set to the SQL string "Select * from tblTest1 where longfield=4".
So the RecordSource is properly set to the query.

But if I have manually created Recordset it doesn't have such a Name property since it is not a query. So I have nothing to put to the RecordSource property of the Report.
Jul 14 '09 #8

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

Similar topics

4
by: Corrine | last post by:
Hi, I am creating a global temporary table that is session-specific. I insert a BLOB into this table, and then select the BLOB from this table into a ResultSet. The ResultSet sees this BLOB...
4
by: gonzal | last post by:
Hi Dose any body know why a temporary table gets deleted after querying it the first time (using SELECT INTO)? When I run the code bellow I'm getting an error message when open the temp table...
1
by: Hans Bampel | last post by:
hello group, i want to denormalize data in a temporary table for a second business-system which cant read related datas what i have: table Partner: (Id_Partner, NamePartner, ...) table...
7
by: Mike Hubbard | last post by:
I have read many many messages about temporary tables and stored procedures. Still, I am struggling with a simple concept. I have a java program which creates a temporary table. I now want to...
2
by: Chuck Crews | last post by:
I am interested in declaring a global temporary table within an application. The application processes 1 set of 600 or less rows each iteration. Multiple programs can and do call this one...
7
by: Larry | last post by:
Hi, I have unbelievable problems just to save a record! I make an input to a record in a subform, which has a temporary table as its recordsource. When I am done, and want to save the...
4
by: anorakgirl | last post by:
hi, i'm writing some plpgsql functions which use a temporary table, and i've read the FAQ and am using EXECUTE to create and insert into my table to avoid errors caused by postgres caching the...
2
by: David Parker | last post by:
In our application we have a table that tracks network sessions. The usage is: 1) create a session record 2) read/update the record several times during the session 3) delete the session record...
1
by: Kburton | last post by:
All, I am trying to declare a cursor on global temporary table. I declared the global temporary table first and then the cursor but I got the following error: 42601(-104) SQL0104N An...
2
by: brstowe | last post by:
Firstly I consider myself quite an experienced SQL Server user, and am now using SQL Server 2005 Express for the main backend of my software. My problem is thus: The boss needs to run reports;...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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.