G
Guest
I have used this great, simple code, but I have an issue that I cannto resolve.
I am looping throught the recordset, and for each field in it, I pass it the value of the field on the form withthe same name. However, not every field in the underlying table is included on the form,a nd it creates an error when it runs. I can trap it, but it errors out if it passes a second time. There should be a simple way to do this.
dim fld as Field
for each fld in rst.Fields
me(fld.name) = rst(fld.name)
next fld
I trap error 2465, and make it go back through, but it doesnt help. Setting the rst to just the fileds I use seem ssomewhat silly, but if I have to, it is going to be a major pain!
Thanks in advance
Sean Henry
I am looping throught the recordset, and for each field in it, I pass it the value of the field on the form withthe same name. However, not every field in the underlying table is included on the form,a nd it creates an error when it runs. I can trap it, but it errors out if it passes a second time. There should be a simple way to do this.
dim fld as Field
for each fld in rst.Fields
me(fld.name) = rst(fld.name)
next fld
I trap error 2465, and make it go back through, but it doesnt help. Setting the rst to just the fileds I use seem ssomewhat silly, but if I have to, it is going to be a major pain!
Thanks in advance
Sean Henry