Sign Up |  Live StatsLive Stats    Articles 37,472| Comments 178,721| Members 19,496, Newest harshith| Online 457
Home Contact
 (Forgotten?): 
    10 years of Excellence
    For best SPN experience, use Firefox Internet Browser!


                                                                   Your Banner Here!    




Click Here to Register/Sign Up Daily Hukamnama Member Blogs Downloads Website Navigation Help Fonts Tags
Sikh Philosophy Network » Sikh Philosophy Network » Current News » Information Technology » Getting an error and have no clue what the problem is

Getting an error and have no clue what the problem is

Our Donation Goal : Why Donate? : Donate Today! : Donate Anonymously (ਗੁਪਤ) : Our Family of Supporters
Goal this month: 500 USD, Received: 0 USD (0%)
Please Donate...
     
Related Topics...
Thread Thread Starter Forum Replies Last Post
Automation error problem Domac Information Technology 2 28-Jul-2006 08:42 AM
Disk or Network Error & Windows - Delayed Write failed Error MOM IT Helpdesk Information Technology 2 19-Nov-2005 22:00 PM
RE: Visual C++ Debug Library error and Report creation error BJC Information Technology 0 04-Nov-2005 15:20 PM
Re: Micorsoft Access has encountered a problem and needs to close (error) Tony Toews Information Technology 0 27-Oct-2005 08:59 AM
The Hindu : International : Dutch take the clue from French, set to deliver snub to E.U. (The Hindu News) Sikh News Reporter Interfaith Dialogues 0 02-Jun-2005 01:01 AM


Tags
getting, error, clue, problem
Reply Post New Topic In This Forum Stay Connected to Sikhism, Click Here to Register Now!
  #1 (permalink)  
Old 28-Jul-2006, 08:22 AM
pokdbz's Avatar pokdbz
Guest
 
Posts: n/a
   
   
Getting an error and have no clue what the problem is

  Donate Today!   Email to Friend  Tell a Friend   Show Printable Version  Print   Contact sikhphilosophy.net Administraion for any Suggestions, Ideas, Feedback.  Feedback  

Register to Remove Advertisements
Here is the error
Run-time error '-2147417851 (80010105)':
Method 'CopyFromRecordset' of object 'Range' failed

Below where the * are is where the debug is showing the error.
Any idea what the problem is?

Dim qdf As DAO.QueryDef
Set qdf = CurrentDb.QueryDefs("PHQChartQuery")
qdf.Parameters("whichSSN") = Me.SSN
qdf.Execute

Dim objXL As Excel.Application
Dim objWkb As Excel.Workbook
Dim objSht As Excel.Worksheet
Dim db As Database
Dim rs As Recordset
Dim intLastCol As Integer
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/information-technology/11667-getting-error-have-no-clue-what.html
Const conMAX_ROWS = 20000
Const conSHT_NAME = "PHQChartQuery"
Const conWKB_NAME = "C:\\PHQChart.xls"
Set db = CurrentDb
Set objXL = New Excel.Application
Set rs = db.OpenRecordset("MakeTablePHQ", dbOpenSnapshot)
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=11667

With objXL
.Visible = True
Set objWkb = .Workbooks.Open(conWKB_NAME)
On Error Resume Next
Set objSht = objWkb.Worksheets(conSHT_NAME)
If Not Err.Number = 0 Then
Set objSht = objWkb.Worksheets.Add
objSht.Name = conSHT_NAME
End If
Err.Clear
On Error GoTo 0
intLastCol = objSht.UsedRange.Columns.Count
With objSht
.Range(.Cells(1, 1), .Cells(conMAX_ROWS, _
intLastCol)).ClearContents
.Range(.Cells(1, 1), _
.Cells(1, rs.Fields.Count)).Font.Bold = True
**********************************
.Range("A2").CopyFromRecordset rs
**********************************
End With
End With
Set objSht = Nothing
Set objWkb = Nothing
Set objXL = Nothing
Set rs = Nothing
Set db = Nothing






Do you agree or disagree with the writer above? Why not share your immediate thoughts with us! Login Now! or Sign Up Today! to share your views... Gurfateh!
Reply With Quote
Sponsored Links
   Click Here to Donate Now!

Support Us!
Become a Promoter!
Gurfateh ji, you can become a SPN Promoter by Donating as little as $10 each month. With limited resources & high operational costs, your donations make it possible for us to deliver a quality website and spread the teachings of the Sri Guru Granth Sahib Ji, to serve & uplift humanity. Every contribution counts. Donate Generously. Gurfateh!
ReplyPost New Topic In This Forum Stay Connected to Sikhism, Click Here to Register Now!

Bookmarks


(View-All Members who have read this thread : 0
There are no names to display.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Tools Search
Search:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On

» Active Discussions
Do you have to take...
By Bunky
Today 18:32 PM
0 Replies, 1 Views
Amrit sanchar...
By Ishna
Today 18:16 PM
3 Replies, 9 Views
Can Sikhs worship...
Today 17:14 PM
41 Replies, 472 Views
Would an Atheist Pray in...
Today 13:57 PM
63 Replies, 5,337 Views
Nice Punjabi Songs with...
Today 08:50 AM
19 Replies, 537 Views
Sikh Philosophy Network...
Today 04:13 AM
18 Replies, 861 Views
Rozana Reports (ਪੰਜਾਬੀ...
Today 03:39 AM
410 Replies, 9,483 Views
Thought of the Moment!
Today 00:06 AM
116 Replies, 6,148 Views
English Sri Guru Granth Sahib Ji Translations
Yesterday 23:30 PM
6 Replies, 124 Views
Sikh Spokesman (ਪੰਜਾਬੀ...
Yesterday 21:25 PM
256 Replies, 6,088 Views
Difference in Bowing...
By Kamala
Yesterday 15:08 PM
11 Replies, 288 Views
What Really Happened on...
Yesterday 12:46 PM
13 Replies, 270 Views
Free Online Gurbani...
Yesterday 03:56 AM
13 Replies, 4,356 Views
English Sri Guru Granth...
Yesterday 03:51 AM
5 Replies, 191 Views
Edward Snowden: the...
Yesterday 03:34 AM
3 Replies, 206 Views
» Books You Should Read...
Powered by vBadvanced CMPS v3.2.3
All times are GMT +6.5. The time now is 18:45 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2 Copyright © 2004-12, All Rights Reserved. Sikh Philosophy Network


Page generated in 0.91563 seconds with 32 queries