F
Fred Boer
Hello!
I have a school library catalogue application, and I'm working on my data
entry / cataloguing form. As I'm using it (what's the expression? "As I eat
my own dog food?"<g>), I'm finding problems and see ways it could be
improved...
In my library collection there are braille books. A single braille book
might be composed of several volumes. Each volume is catalogued separately.
When cataloguing a book like this, the data for each volume is identical
except for one field: "VolumeNumber". What I *think* I would like to do
(although I am open to suggestions!) is to have a command button which I
could click after entering the data for the first volume. This button would
store all of the values in all the relevant controls as the default values
for these controls (with the exception of the VolumeNumber textbox). Then, I
would only have to enter a new volume number to catalogue subsequent
volumes. After all the volumes are entered, I would click on the button
again to set the default values back to null.
The following code doesn't give me an error message, but doesn't set the
default value either. What am I doing wrong?
Private Sub cmdSetDefaults_Click()
If Not IsNull(Me.cboTitle) Then
Me.cboTitle.SetFocus
Me.cboTitle.DefaultValue = Me.cboTitle
End If
End Sub
Thanks!
Fred Boer
P.S. I suppose the best solution would be to loop through the controls on
the form, but I'm taking baby steps here <g>
I have a school library catalogue application, and I'm working on my data
entry / cataloguing form. As I'm using it (what's the expression? "As I eat
my own dog food?"<g>), I'm finding problems and see ways it could be
improved...
In my library collection there are braille books. A single braille book
might be composed of several volumes. Each volume is catalogued separately.
When cataloguing a book like this, the data for each volume is identical
except for one field: "VolumeNumber". What I *think* I would like to do
(although I am open to suggestions!) is to have a command button which I
could click after entering the data for the first volume. This button would
store all of the values in all the relevant controls as the default values
for these controls (with the exception of the VolumeNumber textbox). Then, I
would only have to enter a new volume number to catalogue subsequent
volumes. After all the volumes are entered, I would click on the button
again to set the default values back to null.
The following code doesn't give me an error message, but doesn't set the
default value either. What am I doing wrong?
Private Sub cmdSetDefaults_Click()
If Not IsNull(Me.cboTitle) Then
Me.cboTitle.SetFocus
Me.cboTitle.DefaultValue = Me.cboTitle
End If
End Sub
Thanks!
Fred Boer
P.S. I suppose the best solution would be to loop through the controls on
the form, but I'm taking baby steps here <g>