24. juni 2003 - 14:42Der er
6 kommentarer og 1 løsning
Tjekke opdatering af record
Jeg har en database hvor jeg gerne vil have, at der skrives til en log fil hvis der foretages ændringer i en record. F.eks. hvis en kvinde gifter sig og ændrer efternavn, så skal programmet selv kunne se, at der ændres i den pågældende record og f.eks. skrive ændringerne i en tekstfil. Det med at lave tekstfilen ved jeg godt. Det er mere det at få programmet til selv, at se, at der ændres i recorden.
In VB you can make a form using the Data Form Wizard. This creates a form which has a data control which is bound (attached) to a table in a database). Each field on the form is bound to a field in the table.
Can you give some more information as to how your form is made or it isnt easy to help.
A simple solution is to have a boolean array (one for each field)which gets set when a field gets changed then when you save the record you can check these boolean values to see if it is set to true, if so then you write the values to the log file.
Well, It's a normal database using normal recordset. On the form, each textfield are linked to the database. I'm not using any kind of wizard to make the form.
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.