|
-
Nov 1st, 2002, 06:43 PM
#1
Thread Starter
PowerPoster
Updating DB with bound controls
Can someone give me the syntax for updating a DB with a form containing bound controls? I want all fields updated.
-
Nov 1st, 2002, 06:48 PM
#2
Frenzied Member
I think if they are bound, you will be referencing some sort of recordset. In which case you just do a .Update
Mega.
"If at first you don't succeed, then skydiving is not for you"
-
Nov 1st, 2002, 06:56 PM
#3
Thread Starter
PowerPoster
I tried, I get "insufficient key column information for updating or refreshing"
-
Nov 1st, 2002, 07:00 PM
#4
Frenzied Member
Originally posted by DUNSEL
I tried, I get "insufficient key column information for updating or refreshing"
Check your tables to make sure you have a primary key or a unique key set before doing the update.
Mega.
"If at first you don't succeed, then skydiving is not for you"
-
Nov 1st, 2002, 07:21 PM
#5
Thread Starter
PowerPoster
Yeah there's a primary key. I even wiped the form clean and dropped the query again to be sure they were bound. I know the lock type and all other security is correct because I checked that already. Even tried dimming the rs, even though I shouldn't have to with data environment. I don't get it.
-
Nov 1st, 2002, 07:24 PM
#6
Frenzied Member
Hmm, I would have to have a closer look. I don't use the Data environment as I do all my DB work with unbound controls.
If I get time, I will dabble. Hopefully someone will come up with a answer for you though.
Mega.
"If at first you don't succeed, then skydiving is not for you"
-
Nov 1st, 2002, 07:35 PM
#7
Thread Starter
PowerPoster
It does work, and I'm a moron. The grid needs to be refreshed for the update to show. How can I code that in an event, other than unloading and showing again?
-
Nov 1st, 2002, 07:39 PM
#8
Frenzied Member
Originally posted by DUNSEL
It does work, and I'm a moron. The grid needs to be refreshed for the update to show. How can I code that in an event, other than unloading and showing again?
Does it not have a .Refresh prperty?
Mega.
"If at first you don't succeed, then skydiving is not for you"
-
Nov 1st, 2002, 07:51 PM
#9
Thread Starter
PowerPoster
Your sig kills me. Yeah, it does, but either I'm not coding it properly, or refresh won't do it. I'm refreshing in a click event of another form, so I tried frmName.Refresh, to no avail, and then frmName.MSHFlexGrid1.Refresh, with the same results. I'm about to try unload and show, because I'm pretty sure that will work.
Last edited by DUNSEL; Nov 1st, 2002 at 07:55 PM.
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
|