my program deletes the first record in my database...[RESOLVED]
hi!
I've been posting here questions and I'm glad to have found the answers from all of you. I think you're all good and very helpful to beginners like me...
Well, I just want to ask for some help...I have a form with a master/detail relationship...what I want to do is to update and delete records. I have started coding my delete button. Thought it was working well but I noticed just this mornng that it deletes the first record even if I navigated to the record that I wanted to delete. Please try to help me! I need to finish this soon...I hope someone will assist me on this!
Thanks in advance!
i got my problem....now how to point my program to select the current record...
I read about bindingcontext and it is by default, pointing to the first record (0 in index) that's why my program deletes the first record.
Now what I want to know now is how I could point my program to select the current record displayed in my form and point that record to my database so I can delete it. (help me code this please)
Hope the vb.net gurus out there would help me. Many thanks!
Thanks a lot to all of you!!!
my problem is solved! I've found a link and tried the code it showed. I used parameters to make my program select the record/s it has to delete...and it worked!
But without you guys...I would've given up programming!
There's more to come from me..haha! this program isn't done yet! Please watch out for my queries. Again thanks a lot!
VB forums.com people are the best! ;)