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

Phantom Records Even After Delete

I have a client-server DB, main tables in back-end, forms in front-end. The front-end is on each person's individual PC. I'm using the following code to declare a recordset and an instance of Powerpoint.
Expand|Select|Wrap|Line Numbers
  1. Set db = CurrentDb
  2. Set rs = db.OpenRecordset("SELECT * From WEEKLY_UPDATE_TABLE ORDER BY WEEKLY_UPDATE_TABLE.ENTRY_DATE DESC , WEEKLY_UPDATE_TABLE.ENTRY_TIME", dbOpenDynaset)
  3. rs.Requery
  4.  
  5. Set ppt = New PowerPoint.Application
  6. ppt.Activate
  7. Set Presentation = ppt.Presentations.Open("C:\WeeklyStatReport.pot")
Then I am assigning records in the table to objects on the Powerpoint.

For some reason, there are records that have been deleted from the tables that are still being printed on the presentation. Does anyone have any idea of why this might be happening? I thought I had fixed the problem, but they are back.

Thanks for any help.
CC
Apr 18 '08 #1
3 1593
NeoPa
32,556 Expert Mod 16PB
Having added [ CODE ] tags to make your code legible (please remember to use them in future), I still couldn't see any connection in the code between the recordset and the presentation.

You also don't say when the deletions are being done. Is this while the presentation is open?
Apr 21 '08 #2
The deletions could potentially happen at anytime and the same thing happens. My apologies regarding the code tags, I will remember that in the future.

I'm not sure if I understand your question regardin the connection, but I am using lines like:

Expand|Select|Wrap|Line Numbers
  1.  
  2. With ppt
  3.     With Presentation
  4. .Slides(CurrentSlide).Shapes(4).Table.Cell(TestNum, 1).Shape.TextFrame.TextRange.Text = rs![MER_DEPT_NBR]
  5.     End with
  6. End with
  7.  
  8.  
to add the text to the tables in the presentation. Is this helpful?
May 7 '08 #3
NeoPa
32,556 Expert Mod 16PB
I'm afraid I can be of little help on the PowerPoint side of things (I don't even use it as an operator, let alone code in it).

As general advice though, I would look at dumping a list of the contents of your recordset to the Immediate Pane (Call Debug.Print(...)) to determine if the problem lies on the recordset side of things or the PowerPoint side.
May 8 '08 #4

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

Similar topics

5
by: Andrew | last post by:
Hi All, Have come across something weird and am after some help. Say i run this query where rec_id is a column of table arlhrl, select * from arlhrl where rec_id >= 14260 This returns to...
1
by: Steve Claflin | last post by:
I have a database with a moderate number of records in several tables (the biggest table at the moment is about 800 records). In development it got moved between 2K and XP repeatedly. Several...
0
by: Shaphe | last post by:
I have a system which allows a user to create a list of predefined reports to print. Each report has a chart object, all the chart objects have rowsource set to "ChartQuery". As I loop through...
2
by: ms | last post by:
Access 2000: I am trying to delete duplicate records imported to a staging table leaving one of the duplicates to be imported into the live table. A unique record is based on a composite key of 3...
2
by: Max | last post by:
Hi. I really hope someone can help me. Going slowly insane with this problem. I have a two Access 2000 databases. One is the backend containing tables and some admin queries. The other is the...
0
by: Rod Billett | last post by:
The included html contains 3 divs. One primary Div, with 2 nested divs. the second nested DIV contains an empty table. Problem 1: Phantom Space. When viewed within the browser, the div 'action...
9
by: TB | last post by:
Hi all: I realize that this is strictly speaking not an ASP.NET question, but since most of you people out there SQL gurus as well, I hope you will bear with me on this occasion: I would like...
11
by: shriil | last post by:
Hi I have this database that calculates and stores the incentive amount earned by employees of a particular department. Each record is entered by entering the Date, Shift (morn, eve, or night)...
4
by: CCHDGeek | last post by:
I am using Access 2003 on a Windows XP Platform. I am using DAO to open up a table and export the records to PowerPoint. I'm having an issue where deleted records are still showing up in the...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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: 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
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...

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.