×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Form Question

Form Question

Form Question

(OP)
I am using the above code to open another form and goto the exact record that i am currently in....
Dim stDocName As String
Dim stLinkCriteria As String
                
stDocName = "drum pad sampling sheet"
                
stLinkCriteria = "[ManifestNu]=" & Me![Manifest]
DoCmd.OpenForm stDocName, , , stLinkCriteria

but there could be a "CONT" after the manifestnu....so i am trying to open up evrything that relates to the current record i am on...(e.g. if i am on #12345-1A there could also be 12345-1a-cont as well...) I have tryed putting the "LIKE" * & in front and behined manifestnu and it does not work...also tryed " " & manifestnu & " " and it also did not work....

can anyone help me??
thanks in advance

RE: Form Question

Hi!
Apparently [ManifestNu] is text type field. If it's so you must use quote marks:

stLinkCriteria = "[ManifestNu]='" & Me![Manifest] & "'"

Aivars

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close