Solved

Why I can't write in dbedit and...

Posted on 2004-04-24
13
1,093 Views
Last Modified: 2010-04-05
I have form consist of DataSource ,4dbedit,Dbgrid ,IBquery
datasource1 datset property = IBquery
Datagrid datasource property = datasource1
dbedit datasource property =datasource1
dbedit  datafield property is one of the selected field in Ib query
when I select any Record in dbgrid it appears in the 4 dataedits but i can't write in dbedit
the questions are
 1-  Why can't I rewrite Or delete value in dbedit (to modify my table) knowing that readonly propert for Dbedit =false


2- when I add any record to db table the new Record doesn't appear in dbgrid (Dbgrid.refresh is found in addbutton)
0
Comment
Question by:sraab2004
  • 5
  • 3
  • 2
13 Comments
 
LVL 17

Expert Comment

by:mokule
Comment Utility

You can't type in DBEdit or Your changes are not saved ?
0
 
LVL 12

Expert Comment

by:Ivanov_G
Comment Utility

   DBEdit.DataSource.DataSet.Edit;

   now you can write ...
   if you want to save the changes
   DBEdit.DataSource.DataSet.Post;
0
 

Author Comment

by:sraab2004
Comment Utility
I can't type in dbedit
0
 

Author Comment

by:sraab2004
Comment Utility
for Ivanov Where should I put your code ?
0
 
LVL 17

Expert Comment

by:mokule
Comment Utility
You can't type if your dataset is readonly or DBEdit.DataField is Lookup or calculated.
Is it any of this cases?
0
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 
LVL 17

Expert Comment

by:mokule
Comment Utility
Ivanov:
Edit mode should be entered automatically when he tried type.
So I don't think it solves problem
0
 
LVL 12

Expert Comment

by:Ivanov_G
Comment Utility

   somewhere before you try to type in the DBEdit.

   also make sure your datasets, datafields are properly assigned...
0
 

Author Comment

by:sraab2004
Comment Utility
no solution works the problem still present
0
 
LVL 17

Expert Comment

by:mokule
Comment Utility
There were no solutions.
Answer my questions.
Is your dataset readonly?
Is DBEdit.DataField Lookup or calculated?
0
 
LVL 17

Accepted Solution

by:
mokule earned 30 total points
Comment Utility

All right then. It was only rhetorical question.
IBQuery IS readonly dataset.
To allow database update it must cooperate with TIBUpdateSQL.
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

772 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now