Ask Experts Questions for FREE Help!
  Advanced
Register  |  Log in  
   Ask    
 Answer  
  Help  

Ask QuestionsprogressAnswer QuestionsprogressBuild ReputationprogressBecome an Expert
 
Free Answers in 3 Easy Steps

Register Now
3 Steps

At Ask Me Help Desk you can ask questions in any topic and have them answered for free by our experts. To ask questions or participate in answering them you must register for a free account. By registering you will be able to:
  • Get free answers from experts in any of our 300+ topics.
  • Accept money for answers that you provide.
  • Communicate privately with other members (PM).
  • See fewer ads.

Home > Computers & Technology > Programming > Databases > Access   »   search for visitor,if exists,use data,else,enter?

 
Question Tools Search this Question Display Modes
Question
 
 
#1  
Old May 29, 2008, 07:12 AM
mmu01891
New Member
mmu01891 is offline
 
Join Date: May 2008
Posts: 2
mmu01891 See this member's comment history on his/her Profile page.
search for visitor,if exists,use data,else,enter?

when visitor comes,i enter their ID,if he/she exists,i enter a new record for her visit using the details already in the database.

But if he/she does not exist in the database,want to be able to enter his/her details in the visitor s details form and then after that,enter the details of his or her visit in the visitDetails form.

In other words,i have 2 forms,visitDetails which stores details of a visitor s visit such as timeIn,timeOut and natureOfVisit,the other form is visitorDetails which stores information about the visitot such as name,ID,surname,placeOfResidence.

I also have a query which prompts the user to enter the visitor 's ID,if a match is found,i want to be taken to the visitDetails to enter a new visit record for a visitor whose personal details already exist.
And if a match is not found,i want to be taken to the visitorDetails to enter personal details of a visitor and the to the visitDetails form to enter a new visit record for him/her.

thank for any help!

Reply With Quote
 
     

Answers
 
 
Old May 29, 2008, 07:25 AM   #2  
ScottGem
Computer Expert
ScottGem is offline
 
ScottGem's Avatar
 
Join Date: Jan 2003
Location: LI, NY - USA
Posts: 22,656
ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.
Pay to call ScottGem for advice ($.75/min)
Call ScottGem via Skype™
In the After Update event of the control where you enter the Visitor ID add code like:

If Not IsNull(DLookup("[VisitorID]","tblVistors"."[VisitorID] = " & Me.txtVisitorID)) Then

DoCmd.OpenForm "frmNewVisit"

Else

Docmd.OpenForm "frmNewVisitor"

End If
  Reply With Quote
 
     


Question Tools Search this Question
Search this Question:

Advanced Search
Display Modes

 
Similar Sponsors

Similar Questions
Question Asker Topic Answers Last Post
Not Crazy.I know this movie exists mustangchristy77 Movies 1 Jul 15, 2008 09:03 PM
Got P-Trap, Confirm it Exists jjawacs Plumbing 3 Jan 17, 2006 05:02 AM
Shower Where No Drain Exists TracyC Plumbing 1 Dec 2, 2005 02:30 AM
DOS exists? pwsid Other Computers 15 Aug 9, 2005 10:43 PM




Copyright ©2003 - 2007, Ask Me Help Desk.
All times are GMT -8. The time now is 09:34 PM.

Content Relevant URLs by vBSEO 3.0.0 RC6 © 2006, Crawlability, Inc.