
Don't know what the subject is
I would say validation rules, with exceptions for the title.
You could read in the text file, if it exits first, and store each
validation as a record, or a line, or whatever you find easiest. Then,
compare that with the table. Perhaps this sounds too easy for what you're
trying to do, if so, I missed what you wanted.
Table1 has
FirstName, LastName, Age, Address
T1.dat would contain
"Bodi"
"Klamph"
20
"Canada"
tehn read it in
Valid1 = line1
Valid2 = line2
etc...
with Table1
If !FirstName = Line1 then
if !LastName = line2
etc..
end if
end if
Is that what you want?
HTH,
--
Bodi Klamph
Azure Dragon Software
Quote:
>I am writing a program in VB5 that need to read a .mdb file and perform
>some sort of validation. However, the validation rules and the data
>(that needs to be validated) may change over time. I'd like to write
>an external module such that the program can look for a file (that
>contains the code) and perform validation (if the file exists).
>This is what I want to do:
>I have Table1, Table2, Table3, Table4, Table5 in the .mdb
>T1.dat - for validating Table1
>T2.dat - for Table2
>T3.dat - for Table3, etc.
>If T1.dat exists, the program read T1.dat. Do something to Table1.
>If T2.dat exists, the program read T2.dat. Do something to Table2.
>If T3.dat does not exist, the program do nothing to Table3.
>I am wondering if it is possible. If it is, how do I start?
>---------------------------------------------------------------------------
begin 666 Bodi Klamph.vcf
M0D5'24XZ5D-!4D0-"E9%4E-)3TXZ,BXQ#0I..DML86UP:#M";V1I#0I&3CI"
M;V1I($ML86UP: T*3U)'.D%Z=7)E($1R86=O;B!3;V9T=V%R90T*5$E43$4Z
M.SL[.T]N=&%R:6\[.T-A;F%D80T*3$%"14P[5T]22SM%3D-/1$E.1SU154]4
M140M4%))3E1!0DQ%.D]N=&%R:6\],$0],$%#86YA9&$-"D%$4CM(3TU%.CL[
M.SL[.T-A;F%D80T*3$%"14P[2$]-13I#86YA9&$-"D5-04E,.U!2148[24Y4
2,S<S-UH-"D5.1#I60T%21 T*
`
end