Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old December 13th, 2005, 07:14 PM
Registered User
Join Date: Dec 2005
Location: , , .
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.

Reply With Quote
  #2 (permalink)  
Old December 14th, 2005, 07:29 AM
Friend of Wrox
Join Date: Sep 2003
Location: Salisbury, Wiltshire, United Kingdom.
Posts: 155
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to leehambly

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.
Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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

All times are GMT -4. The time now is 10:48 AM.

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