Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Operation must use an updateable query

Posted on 2003-11-25
14
Medium Priority
?
369 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Suggested Courses

610 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