A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Populate a form based on an existing form



 
 
Thread Tools Display Modes
  #1  
Old November 4th, 2008, 10:11 PM posted to microsoft.public.access
[email protected]
external usenet poster
 
Posts: 8
Default Populate a form based on an existing form

I have a fairly large CRM application that is homegrown that I have
been asked to add to, the original developer is no longer with the
company and there isn't much in the way of comments or explanation. In
the main form customer I have a tab with a display list that display's
Cust_ID, CustName, Date, Type and DevID. I want the user to be able to
double click on a list item and populate a form with the information
from the orginal submitted form for editing purposes. Here is what i
have so far:

Private Sub ListDisplayDev_DblClick(Cancel As Integer)

If ListDisplayDev.ListIndex -1 Then

Dim stDocName As String
Dim stLinkCriteria As String
Dim stItem As String

stItem = "& Me.ListDisplayDev.Column(4) &"""

stDocName = "frmDeveloperSREdit"

DoCmd.OpenForm stDocName, , , "[txtDevID]='" & stItem & "'", ,
acWindowNormal, stItem

End If

End Sub

I'm able to pass the form, but doesn't seem to be passing the value
correctly and then when the form is open how to I populate the fields
in the new form?
 




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 01:07 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.