Wrox Programmer Forums
|
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 13th, 2005, 07:14 PM
Registered User
 
Join Date: Dec 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default newby

Hello. Very new to VBA but I need to get two things done for a DB I am working on. The first is to be able to click or dbl click (don't care which) to automatically insert the date and time the rest of the info is going in.

Second, I need to develop a way to look up individuals either by last name or membership number.

Both seem pretty straight forward and I think in time I could figure it out, but I'm only on chapter 2 of Access for beginners and I need this done in a couple of weeks.

Any suggestions would be helpful and appreciated.

 
Old December 14th, 2005, 07:29 AM
Friend of Wrox
 
Join Date: Sep 2003
Posts: 155
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to leehambly
Default

Tyler... couple of questions:

To be able to click or dbl-click to automatically insert the date and time... do you want to have to click or do something, or do you just need a datestamp on the record? If it is a datestamp, then you are better off with a default value in your table. Set the default of the date field to be "=NOW()"
If you want someone to make an action to do this, simply add a bit of code to the controls event handler... OnClick or OnDblClick, something along the lines of

me!ctlName = now()

where ctlName is the name of your control.

Secondly, to be able to look up individuals details... I am assuming you have these details in a table somewhere? If you do, open up a new form (just for practice) and put a combobox (from the Toolbox menu) on it... it should fire up a bit of a wizard... navigate to your user table and, well, probably best to just play with it for a bit... best way to learn, though happy to give more depth if you need it.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Newby - Download Instructions bill.mccullen BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 3 December 1st, 2008 09:36 AM
Newby need to import Excel to SQL2005 TashaAT C# 2005 35 August 3rd, 2008 02:45 PM
newby question Murm MySQL 4 December 7th, 2003 11:07 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.