[mso] Re: opening a new form based on a field in a previous form
- From: "Dian D. Chapman" <dian@xxxxxxxxxxxxx>
- To: <mso@xxxxxxxxxxxxx>
- Date: Tue, 12 Feb 2008 01:55:33 -0600
So what was the answer?
Dian D. Chapman
Technical Consultant, Microsoft MVP
MOS Certified Instructor, Editor/TechTrax Ezine
Tech Editor for Word & Office 2007 Bibles
https://mvp.support.microsoft.com/profile/Dian.Chapman
Free PC Tutorials: http://www.mousetrax.com/techtrax
Free Word Tricks eBook: http://www.mousetrax.com/books.html
Optimize your business docs: http://www.mousetrax.com/consulting
Learn VBA the easy way: http://www.mousetrax.com/techcourses.html
-----Original Message-----
From: mso-bounce@xxxxxxxxxxxxx [mailto:mso-bounce@xxxxxxxxxxxxx] On Behalf
Of Leeba
Sent: Tuesday, February 12, 2008 12:44 AM
To: mso@xxxxxxxxxxxxx
Subject: [mso] Re: opening a new form based on a field in a previous form
I didn't get an error.=20
In another group I just got an answer that worked.
Thank you anyways.
Leeba
-----=E4=E5=E3=F2=E4 =EE=F7=E5=F8=E9=FA-----
=EE=E0=FA: mso-bounce@xxxxxxxxxxxxx [mailto:mso-bounce@xxxxxxxxxxxxx] =
=E1=F9=ED Dian D.
Chapman
=F0=F9=EC=E7: Tuesday, February 12, 2008 7:48 AM
=E0=EC: mso@xxxxxxxxxxxxx
=F0=E5=F9=E0: [mso] Re: opening a new form based on a field in a =
previous form
Are you getting an error description? If so, what does it say?
Or, try tossing it into a MsgBox to see what displays.
Msgbox stLinkCriteria=20
If that doesn't display anything...try=20
MsgBox "[ClientID]=3D"
Sorry, I don't know the Access object model all that well...so I could =
be
missing something.
Dian D. Chapman
Technical Consultant, Microsoft MVP
MOS Certified Instructor, Editor/TechTrax Ezine
Tech Editor for Word & Office 2007 Bibles
https://mvp.support.microsoft.com/profile/Dian.Chapman
Free PC Tutorials: http://www.mousetrax.com/techtrax
Free Word Tricks eBook: http://www.mousetrax.com/books.html=20
Optimize your business docs: http://www.mousetrax.com/consulting
Learn VBA the easy way: http://www.mousetrax.com/techcourses.html=20
-----Original Message-----
From: mso-bounce@xxxxxxxxxxxxx [mailto:mso-bounce@xxxxxxxxxxxxx] On =
Behalf
Of Leeba
Sent: Monday, February 11, 2008 1:47 AM
To: MS_Access_Professionals@xxxxxxxxxxxxxxx; mso@xxxxxxxxxxxxx
Subject: [mso] opening a new form based on a field in a previous form
I have a form with a list of clients. There is a combo box with a list =
of
projects for each client or an option to add a new project.
When clicking a new project, it should automatically fill in the client =
ID
to match the clientID on the previous form.
My code is:
Private Sub Command34_Click()
On Error GoTo Err_Command34_Click
=20
Dim stDocName As String
Dim stLinkCriteria As String
=20
stDocName =3D "projects"
=20
stLinkCriteria =3D "[ClientID]=3D" & Me![ClientID]
DoCmd.OpenForm stDocName, , , stLinkCriteria
=20
Exit_Command34_Click:
Exit Sub
=20
Err_Command34_Click:
MsgBox Err.Description
Resume Exit_Command34_Click
End Sub
=20
This is not working. Anyone figure out why.
TIA,
Leeba
*************************************************************
You are receiving this mail because you subscribed to mso@xxxxxxxxxxxxx =
or
MicrosoftOffice@xxxxxxxxxxxxxxxx
To send mail to the group, simply address it to mso@xxxxxxxxxxxxx
To Unsubscribe from this group, visit the group's homepage and use the
dropdown menu at the top. This will allow you to unsubscribe your email
address or change your email settings to digest or vacation (no mail).
http://www.freelists.org/webpage/mso
To be able to share files with the group, you must join our Yahoo sister
group. This group will not allow for posting of emails, but will allow =
you
to join and share problem files, templates, etc.:
http://tech.groups.yahoo.com/group/MicrosoftOffice . This group is for =
FILE
SHARING ONLY.
If you are using Outlook and you see a lot of unnecessary code in your =
email
messages, read these instructions that explain why and how to fix it:
http://personal-computer-tutor.com/abc3/v28/greg28.htm
*************************************************************
--=20
Internal Virus Database is out-of-date.
Checked by AVG.
Version: 7.5.448 / Virus Database: 269.19.20/1231 - Release Date: =
2/4/2008
12:00 AM
--=20
Internal Virus Database is out-of-date.
Checked by AVG.
Version: 7.5.448 / Virus Database: 269.19.20/1231 - Release Date: =
2/4/2008
12:00 AM
=20
--=20
No virus found in this outgoing message.
Checked by AVG.
Version: 7.5.448 / Virus Database: 269.20.2/1231 - Release Date: =
2/10/2008
12:00 AM
=20
*************************************************************
You are receiving this mail because you subscribed to mso@xxxxxxxxxxxxx =
or
MicrosoftOffice@xxxxxxxxxxxxxxxx
To send mail to the group, simply address it to mso@xxxxxxxxxxxxx
To Unsubscribe from this group, visit the group's homepage and use the
dropdown menu at the top. This will allow you to unsubscribe your email
address or change your email settings to digest or vacation (no mail).
http://www.freelists.org/webpage/mso
To be able to share files with the group, you must join our Yahoo sister
group. This group will not allow for posting of emails, but will allow =
you
to join and share problem files, templates, etc.:
http://tech.groups.yahoo.com/group/MicrosoftOffice . This group is for =
FILE
SHARING ONLY.
If you are using Outlook and you see a lot of unnecessary code in your =
email
messages, read these instructions that explain why and how to fix it:
http://personal-computer-tutor.com/abc3/v28/greg28.htm
*************************************************************
*************************************************************
You are receiving this mail because you subscribed to mso@xxxxxxxxxxxxx or
MicrosoftOffice@xxxxxxxxxxxxxxxx
To send mail to the group, simply address it to mso@xxxxxxxxxxxxx
To Unsubscribe from this group, visit the group's homepage and use the
dropdown menu at the top. This will allow you to unsubscribe your email
address or change your email settings to digest or vacation (no mail).
http://www.freelists.org/webpage/mso
To be able to share files with the group, you must join our Yahoo sister
group. This group will not allow for posting of emails, but will allow you
to join and share problem files, templates, etc.:
http://tech.groups.yahoo.com/group/MicrosoftOffice . This group is for FILE
SHARING ONLY.
If you are using Outlook and you see a lot of unnecessary code in your email
messages, read these instructions that explain why and how to fix it:
http://personal-computer-tutor.com/abc3/v28/greg28.htm
*************************************************************
--
No virus found in this incoming message.
Checked by AVG.
Version: 7.5.448 / Virus Database: 269.20.2/1231 - Release Date: 2/10/2008
12:00 AM
--
No virus found in this incoming message.
Checked by AVG.
Version: 7.5.448 / Virus Database: 269.20.2/1231 - Release Date: 2/10/2008
12:00 AM
--
No virus found in this outgoing message.
Checked by AVG.
Version: 7.5.448 / Virus Database: 269.20.2/1231 - Release Date: 2/10/2008
12:00 AM
*************************************************************
You are receiving this mail because you subscribed to mso@xxxxxxxxxxxxx or
MicrosoftOffice@xxxxxxxxxxxxxxxx
To send mail to the group, simply address it to mso@xxxxxxxxxxxxx
To Unsubscribe from this group, visit the group's homepage and use the dropdown
menu at the top. This will allow you to unsubscribe your email address or
change your email settings to digest or vacation (no mail).
http://www.freelists.org/webpage/mso
To be able to share files with the group, you must join our Yahoo sister group.
This group will not allow for posting of emails, but will allow you to join
and share problem files, templates, etc.:
http://tech.groups.yahoo.com/group/MicrosoftOffice . This group is for FILE
SHARING ONLY.
If you are using Outlook and you see a lot of unnecessary code in your email
messages, read these instructions that explain why and how to fix it:
http://personal-computer-tutor.com/abc3/v28/greg28.htm
*************************************************************
Other related posts: