?
Solved

Operation must use an updateable query

Posted on 2003-11-25
14
Medium Priority
?
368 Views
Last Modified: 2010-05-03
dear all,
can anyone tell me why every time after i open any report then my ado  become read only mode..

top urgent!!!

my report procedure:

  With CrsRpt
      .ReportFileName = App.Path & "\Report\1.rpt"
      .PrintFileODBCSource = GV_ODBC$
      .PrintFileODBCTable = "mytablename"
      .ParameterFields(0) = "CompanyName;" & GV_COMP$ & ";true"
      .ParameterFields(1) = "UserName;" & GV_USER$ & ";true"
      .Action = 1
end with

after report showing .. all my adodc.recordset become not updateable
eg:
  adodc1.recordset.update

not only my adodc...
i cant even create new database
eg:\
    dba.Execute "Select * into [Temp_table] from " & tblname
   
   runtime error '3027'
cannot update. database or object is read only


thanks
0
Comment
Question by:delphikit
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 3
  • 2
  • +1
14 Comments
 
LVL 1

Expert Comment

by:anaadoul
ID: 9816408
i'v run into this trouble before but in ASP
it was solved by the folloing


right click on the database
click the security tab

make it everyone full control


hope it works

---------------------------------
There Are 10 Kind OF People
Those Who Understands Binary AND Those Who Don't
0
 

Author Comment

by:delphikit
ID: 9816498
hi anaadoul,
thanks for reply...

i am using DBF table...and Crystal report 8.5 with VB6
0
 
LVL 18

Expert Comment

by:Sethi
ID: 9816532
This is because you are passing the name of the table as record source to the report and the report is holding the table and would not allow and editing options on that table. There are two ways to workaround this problem:
1. Use recordset as a source to the report
2. Set the report variable to nothing before making any changes to the respective table.
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:delphikit
ID: 9816554
dear Sethi,
i cannt understand your anwser...
can u give me some example...


thanks
0
 

Author Comment

by:delphikit
ID: 9816610
dear all,
my ODBC connect was

z$ = "ODBC;DATABASE=" & GV_ODBC$ & ";UID="";PWD="";DSN=" & GV_ODBC$

GV_ODBC is DSN name

dont know why ,... after opening report... all my table locked...

0
 
LVL 18

Expert Comment

by:Sethi
ID: 9816624
What Reporting tool and Database are you using and are you comfortable with ADO?
0
 

Author Comment

by:delphikit
ID: 9816648
dear all,
i'm using crystalReport compoment, and DBF table,....
i am do updating, insert and delete mode with Ado b4 i open any report...
but once i open report, all the DBF table locked...

using crystalReport 8.5

thanks
0
 
LVL 18

Expert Comment

by:Sethi
ID: 9816814
Sorry, no idea about DBF. I assumed Access as your backend
0
 

Author Comment

by:delphikit
ID: 9817606
dear all,
anyone can slove my problem? top urgent
i willing to give more points

thanks

0
 
LVL 1

Expert Comment

by:anaadoul
ID: 9817834
what happens after you close the report is the table still locked?


---------------------------------
There Are 10 Kind OF People
Those Who Understands Binary AND Those Who Don't
0
 

Author Comment

by:delphikit
ID: 9856800
dear all
thanks for everything..

problem solved... cos of ODBC driver
  before =  "driver of Microsoft dbase (*.dbf)

should use "Microsoft FoxPro VFP driver (*.dbf)

0
 

Accepted Solution

by:
amp072397 earned 0 total points
ID: 10618785
PAQed, with points refunded (250)

Thanks very much!
amp, ee admin, amp*at*experts-exchange.com
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses
Course of the Month9 days, 8 hours left to enroll

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question