Populate a form based on an existing form

K

krisjuchau

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top