|
-
Nov 21st, 2000, 04:45 AM
#1
Thread Starter
Lively Member
hello, i'm trying to update dbgrid with coding... say if they tried to add a new record, then i get a name and the age with inputbox and then i do it with a code
like
datexample.addnew ...' add and then refresh
datexample.refresh
however, it does not show on the dbgrid. but if i exit the program and start it back, it shows... i know it's kinda confusing but help... i want it to show the newly added record without exiting and restarting the prog
-
Nov 21st, 2000, 04:54 AM
#2
Lively Member
Try using
This requeries your recordset and rebuilds it. You may need to refresh your view depending on what type of dbgrid you have.
 Just trying to muddle through...
-
Nov 21st, 2000, 05:05 AM
#3
Thread Starter
Lively Member
i tried .requery but i get an error saying that member or data member not found
-
Nov 21st, 2000, 05:11 AM
#4
Lively Member
How do you actually add your information to the recordset?
 Just trying to muddle through...
-
Nov 21st, 2000, 05:15 AM
#5
Thread Starter
Lively Member
i link textboxes with the datarecordset items and then i do addnew method... the thing is that, dgbrid updates, that is shows the result when i delete a record and the do a data.refresh method
-
Nov 21st, 2000, 05:19 AM
#6
Lively Member
How do you populate your recordset?
(I had a similar problem last month and using requery solved it for me.)
 Just trying to muddle through...
-
Nov 21st, 2000, 05:28 AM
#7
Thread Starter
Lively Member
sorry but i don't know what you mean by populating
-
Nov 21st, 2000, 05:34 AM
#8
Lively Member
how do you put your information into the recordset datexample?
(sorry about the 20 questions)
 Just trying to muddle through...
-
Nov 21st, 2000, 05:46 AM
#9
Lively Member
Just looking back at your code:
I assumed that datexample is a recordset - is that the case?
What is the name of your dbgrid?
if datexample is a recordset then try refreshing your dbgrid as well
i.e after the record has been added - dbgrid.refresh or call the form refresh procedure
let me know if that works
H.
 Just trying to muddle through...
-
Nov 21st, 2000, 05:53 PM
#10
Thread Starter
Lively Member
i did that and it still doesnt work... i mean i refreshed the dbgrid as well as the recordset.. and still have the same problems
-
Nov 22nd, 2000, 04:06 AM
#11
Lively Member
hmmmm.....
I'll need to have another think about this one
H.
 Just trying to muddle through...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|