| Access - Ερωτήσεις / Απαντήσεις Access + VBA... Εδώ δεν υπάρχουν όρια! |
| | Εργαλεία Θεμάτων | Τρόποι εμφάνισης |
|
#2
| |||
| |||
|
Hi You need to work with the Current Event and some form variables e.g Κώδικας: Option Compare Database Dim someField as String Dim someOtherField as Integer .................. 'Suppose you want to carry someField from a textbox named baseField Private Sub baseField_AfterUpdate() ' Some Other Code someField = Me.BaseField End Sub Private Sub cboOtherField_AfterUpdate() 'Some Other Code someOtherField =Me.cboOtherField End Sub 'Now on the Current Event Private Sub Form_Current() If me.NewRecord then If Len(SomeField) then Me.BaseField = SomeField If Len(SomeOtherField) then Me.cbOtherField = SomeotherField End if End Sub You start entering data...the very first time you enter the data are stored in the form variables Now on every new record the variables are carrying the values and they fill the controls with the default values...when you change some of the values this are updated on the form's variables and they are carried on the next new Record |
« Προηγούμενο Θέμα
|
Επόμενο Θέμα »
| |
| ||||
| Θέμα | Δημιουργός | Forum | Απαντήσεις | Τελευταίο Μήνυμα |
| [ Φόρμες ] Ενημερωση πεδιων απο φορμα σε ολα τα πεδία υποφορμας με εντολη vba | artchrist73 | Access - Ερωτήσεις / Απαντήσεις | 3 | 20-06-20 01:06 |
| Διαδοχική ενημέρωση πεδίων | gantzinis | Access - Ερωτήσεις / Απαντήσεις | 11 | 19-08-11 18:24 |
| Ενημέρωση πεδίων από δευτερεύουσα φόρμα | gmax | Access - Ερωτήσεις / Απαντήσεις | 11 | 08-08-11 11:07 |
| Νέος πινακας απο υπάρχουσα φόρμα | Potsikas | Access - Ερωτήσεις / Απαντήσεις | 5 | 04-03-10 15:57 |
Η ώρα είναι 21:35.



Θεματικός Τρόπος
