K
Kevin Sprinkel
Hi, pay2ln.
For the first one, use a combo box, selecting the customer
table's key field (usually implemented as an AutoNumber)
and the address field. The easiest way to do it is with
the Combo Box wizard. Open your form in Design mode, and
toggle on the wizard button on the Toolbox Toolbar (it's
an icon that looks like a wand and five stars). Choose
the fields, tell it to hide the key field. What will be
stored in the form's underlying table is the key field
itself, but the form will display your address, and
autofill it for you if the Auto Expand property is set to
Yes (the default).
The 2nd one will take a little code. You may know by now
that Access programming is "event driven", meaning that
certain events can trigger code to be run. In your case,
you can use the AfterUpdate event of the memo field to
either timestamp at the end of the memo or to a Date
field. The latter is probably more desirable, as it would
permit queries by date. In the following code, I've
assumed the name of the form control bound to the date
field is named txtLastChanged:
Private Sub YourMemoField_AfterUpdate()
On Error Goto ErrHandler
txtLastChanged = Date()
ErrExit:
Exit Sub
ErrHandler:
MsgBox Err.Description
GoTo ErrExit
HTH
Kevin Sprinkel
End Sub
working effort.
(searching by number and then street). I have a field
that successfully combines those two now into something
like 101 Smith Road. Can I have a field that where I
start typing in 101 Sm and it goes to that record
similar to an outlook address? I know I can do a lookup
FILTER but that defeats the whole purpose of the form...
field automatically stamp the date and time of the most
recent update in that field. If you have ever used
notepads log feature (any text file with a .log
extension), you'd see what I'm describing.
For the first one, use a combo box, selecting the customer
table's key field (usually implemented as an AutoNumber)
and the address field. The easiest way to do it is with
the Combo Box wizard. Open your form in Design mode, and
toggle on the wizard button on the Toolbox Toolbar (it's
an icon that looks like a wand and five stars). Choose
the fields, tell it to hide the key field. What will be
stored in the form's underlying table is the key field
itself, but the form will display your address, and
autofill it for you if the Auto Expand property is set to
Yes (the default).
The 2nd one will take a little code. You may know by now
that Access programming is "event driven", meaning that
certain events can trigger code to be run. In your case,
you can use the AfterUpdate event of the memo field to
either timestamp at the end of the memo or to a Date
field. The latter is probably more desirable, as it would
permit queries by date. In the following code, I've
assumed the name of the form control bound to the date
field is named txtLastChanged:
Private Sub YourMemoField_AfterUpdate()
On Error Goto ErrHandler
txtLastChanged = Date()
ErrExit:
Exit Sub
ErrHandler:
MsgBox Err.Description
GoTo ErrExit
HTH
Kevin Sprinkel
End Sub
advice that will help me over two hurdles to my first-----Original Message-----
Hello,
I have been learning access and would appreciate any
working effort.
like to be able to fill it in and then up pops the record1. I need a way to lookup a record by the address. I'd
(searching by number and then street). I have a field
that successfully combines those two now into something
like 101 Smith Road. Can I have a field that where I
start typing in 101 Sm and it goes to that record
similar to an outlook address? I know I can do a lookup
FILTER but that defeats the whole purpose of the form...
field works for this. Is there a way to make the memo2. I need to make long running notes. Obviously, a memo
field automatically stamp the date and time of the most
recent update in that field. If you have ever used
notepads log feature (any text file with a .log
extension), you'd see what I'm describing.