User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the MS Access and FileMaker Pro section within the Web Development category of DaniWeb, a massive community of 374,178 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,435 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our MS Access and FileMaker Pro advertiser:
Views: 833 | Replies: 0
Reply
Join Date: Jan 2008
Posts: 12
Reputation: Jamesharks is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
Jamesharks Jamesharks is offline Offline
Newbie Poster

FindRecord help

  #1  
Feb 12th, 2008
I have 2 forms; one called frmLogin and another called user_info.

On frmLogin I have a text box called USERNAME and a command button. When you click the command button the following code is run:

This Code Works (Or atleast It should)
Private Sub Command29_Click()
Dim strUSERNAME As String
Dim strProcess As String

strUSERNAME = Me.USERNAME
strProcess = LOGIN(strUSERNAME)
End Sub


The code takes what has been typed into to the textbox USERNAME and passess it onto the module LOGIN which has the following code:

This Code Does NotWork
Public Function LOGIN(strLOGIN As String)

DoCmd.OpenForm "user_info"
DoCmd.FindRecord strLOGIN

End Function


I know this code does not work but I don't know what to do to get it working. I am trying to get it to open the form user_info and display records relating to what has been typed into the textbox USERNAME.

If you have any suggestions please reply.

Thankyou
Last edited by Jamesharks : Feb 12th, 2008 at 7:31 pm. Reason: mistakes
AddThis Social Bookmark Button
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb MS Access and FileMaker Pro Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the MS Access and FileMaker Pro Forum

All times are GMT -4. The time now is 4:34 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC