Hi All,
Hopefully this won't be too confused.
I have a "Register" Form to book people in and out using a Bar code etc. This form is called "frmBookInOut".
When loading from the Main Menu, this form uses now() to calculate from.
If a different date to day is required, another form is loaded up, the new date selected and then the "frmBookInOut" is loaded.
Both of the above processes use the same code as shown below:
Obviously, the part in RED is different, but the rest of the code is exactly the same (I've even copied from 1 to the other to check!)
Interestingly, running from the "Main Menu" it comes up with the Error 438 - Obj Not Supported error whereas from the date selectio it works happily.
Anyone got any ideas and I am COMPLETELY lost. . . . .
thanks for any pointers,
Fitz
Fitz
Did you know, there are 10 types of people in this world:
* Those who understand binary
and
* Those who Don't!!
Hopefully this won't be too confused.
I have a "Register" Form to book people in and out using a Bar code etc. This form is called "frmBookInOut".
When loading from the Main Menu, this form uses now() to calculate from.
If a different date to day is required, another form is loaded up, the new date selected and then the "frmBookInOut" is loaded.
Both of the above processes use the same code as shown below:
Code:
...
DoCmd.OpenForm "frmBookInOut", acNormal
Forms!frmBookInOut.txtDate = Format([COLOR=#EF2929][b]Now()[/b][/color], "DD-MMM-YYYY")
...
Obviously, the part in RED is different, but the rest of the code is exactly the same (I've even copied from 1 to the other to check!)
Interestingly, running from the "Main Menu" it comes up with the Error 438 - Obj Not Supported error whereas from the date selectio it works happily.
Anyone got any ideas and I am COMPLETELY lost. . . . .
thanks for any pointers,
Fitz
Fitz
Did you know, there are 10 types of people in this world:
* Those who understand binary
and
* Those who Don't!!