technocraze
01-04-2007, 08:33 AM
Hi guys,
I have a few issues that are yet to be resolved. Below mentioned are the issues. devlopment tool: MS Acess using visual basic
with sql. It would be very much appeciated of any assistance rendered to resolve the issues. Thanks in advance.
1) Data-overwritten issue - insertion
Controls
Combo box(predefined list-studentId) (S1,S2,S3,S4,S5)
Textboxes (studentId,class, subject, grade, course)
Button - Update
I am having an issue with inserting the data to MS Acess table. This happened when i select my data from the drop-down combo
box. I am using a change event for my drop-down combo coz i gt a predefined list of data in my MS Acess table. Nw, I need to
insert the datas (subject, class, grade, course) into the first predfined list, which is first selected item of the cbx. When
I press on the button update, the data gt inserted into the table (Student). But when I select the the first item frm the
cbx, the previous entry gt overwritten by second entry. May I knw how to prevent the data frm overwritten and implement in
such a way that prevent user from entering the same data? I want to prevent user from inserting the data to the table that
have been occupied. I am using an sql insert, and DLookUp function but nt too sure as to whether to use recordSet.
2) Updating issue
Controls
2 combo box -predfined, populated
1 textbox -empty
1 listbox - populated
1 button - Update
I am having an issue with updating the data to MS Acess table. I am using a predefined combo box(1st cbx), populated cbx(2nd
cbx) - data matching the corresponding data from the table, popoulate lbx - data corresponding to the two cbx, empty textbox
(user-input). What i want to achieve is to update the data of the empty textbox based on the values of the listbox. But when
i run the sql query i encountered an error : failed in linked table. May I knw hw can this issue be rectified and any
suggections.
3) Updating issue
Control
2 combo box (1 predefined, 1 populated)
1 listbox (populated)
Bounded textboxes
I am having an issue with binding the chosen data of the populated listbox to the textbox. I am using a predefined combo box
(1st cbx), populated combox box (2nd cbx) - selected data of the cbx corresponding to the table, populated listbox - selected
data of the 2 cbx corresponding to the table, bounded textbox to table controlSource - selected data from the populated
listbox. But when i click on the data from the populated listbox and displayed on the textbox. I encountered a cancelUpadate
and edit error. May I knw what wrong with the codes and hw can it be resolved? I am using recordSet for this implementation
under the Update event. I am nt too sure as hw to manipulate with the recordSet. Hence, code snippets is much preferred.
I have a few issues that are yet to be resolved. Below mentioned are the issues. devlopment tool: MS Acess using visual basic
with sql. It would be very much appeciated of any assistance rendered to resolve the issues. Thanks in advance.
1) Data-overwritten issue - insertion
Controls
Combo box(predefined list-studentId) (S1,S2,S3,S4,S5)
Textboxes (studentId,class, subject, grade, course)
Button - Update
I am having an issue with inserting the data to MS Acess table. This happened when i select my data from the drop-down combo
box. I am using a change event for my drop-down combo coz i gt a predefined list of data in my MS Acess table. Nw, I need to
insert the datas (subject, class, grade, course) into the first predfined list, which is first selected item of the cbx. When
I press on the button update, the data gt inserted into the table (Student). But when I select the the first item frm the
cbx, the previous entry gt overwritten by second entry. May I knw how to prevent the data frm overwritten and implement in
such a way that prevent user from entering the same data? I want to prevent user from inserting the data to the table that
have been occupied. I am using an sql insert, and DLookUp function but nt too sure as to whether to use recordSet.
2) Updating issue
Controls
2 combo box -predfined, populated
1 textbox -empty
1 listbox - populated
1 button - Update
I am having an issue with updating the data to MS Acess table. I am using a predefined combo box(1st cbx), populated cbx(2nd
cbx) - data matching the corresponding data from the table, popoulate lbx - data corresponding to the two cbx, empty textbox
(user-input). What i want to achieve is to update the data of the empty textbox based on the values of the listbox. But when
i run the sql query i encountered an error : failed in linked table. May I knw hw can this issue be rectified and any
suggections.
3) Updating issue
Control
2 combo box (1 predefined, 1 populated)
1 listbox (populated)
Bounded textboxes
I am having an issue with binding the chosen data of the populated listbox to the textbox. I am using a predefined combo box
(1st cbx), populated combox box (2nd cbx) - selected data of the cbx corresponding to the table, populated listbox - selected
data of the 2 cbx corresponding to the table, bounded textbox to table controlSource - selected data from the populated
listbox. But when i click on the data from the populated listbox and displayed on the textbox. I encountered a cancelUpadate
and edit error. May I knw what wrong with the codes and hw can it be resolved? I am using recordSet for this implementation
under the Update event. I am nt too sure as hw to manipulate with the recordSet. Hence, code snippets is much preferred.