If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Access > Subform record synchronizing

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-01-04, 19:32
Miloiko Miloiko is offline
Registered User
 
Join Date: May 2004
Posts: 1
Subform record synchronizing

I´ve been able to build my database quite easily with the help of this forum.
But now I have to admit I´ve hit the wall.

I´m using SubjectList -list box to choose the record I want to add the value. The problem is that instead of adding the value to the record that is currently highlighted by the list box, the value is actually inserted to the next record. For example if you choose fifth subject and select some value for it with option group and then click the sixth subject is there. And if you then click back to fifth subject there is no value stored because it went to the next one. Is there something I need to refresh or requery to get this working. Or would it be better to come up with some other way to store these values into the table.

Oh, and one thing yet. There is three subjects that need to have six options instead of normal five. Should I use two different option groups for these and have the right one visible with each subject. Or one group that has the sixth radio button visible/unvisible depending on the SubjID. How can I accomplish this?

All help is greatly appreciated, thanks in advance.

-miloiko-
Attached Files
File Type: zip MyDB ver. 2.1.zip (20.2 KB, 31 views)
Reply With Quote
  #2 (permalink)  
Old 06-04-04, 17:19
ghozy ghozy is offline
Registered User
 
Join Date: Jun 2004
Location: Florida, US
Posts: 521
You might try to put this line into beforeupdate event of listbox. it will check if the data in the record is changed, if it is changed it will try to save it to database.

if me.dirty then me.dirty=false
__________________
ghozy.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On