Linking text boxes

Ya i put that in before the DoCmd.OpenReport part of code and I still got that runtime error...
 
Hey Nigel,
ID is a column I created with the numbers 1 to watever. Basically it is the primary key but it is not an autonumber..
 
Is the control bound or unbound?
 
The controls in the report or the form? All the controls (textboxes) are bound in the form and the report.
 
I changed the name of the report and editted the code now the error im getting is a compile error. Telling me the sub or function is not defined.
 
OpenReport "Tooling RPT", acViewPreview, , "ID = '" & Me.[Tool No#] & "'"
 
I dont think I can upload my database because im representing the company
 
I can upload a sample, not the full one due to confidentiality
 
Will this cause errors because I have images that change with every record and the filepaths will be invalid when i send..
 
Remove the image field and control. I don't really need that.
 
Yep, I got it. I will have a look at it when I get a minute.
 
I don't see where the OpenReport command was used in your db. Upload exactly what you're trying.

And I thought we already told you not to have spaces and parentheses in your form names?
 
It is a bad thing :)

Back to your problem. Using the first record in the table, the Tool No is 856A3387G03 and the ID is 1. These two are not compatible neither are they the same.

Why don't you use the ID field instead?
Is Tool No# unique across all records?

Even if it's possible to do, you shouldn't be embedding forms in reports when you can easily embed a report as a subreport.
 

Users who are viewing this thread

Back
Top Bottom