Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ParameterBox vs. Combofield

Status
Not open for further replies.

Nitronomus

Technical User
Aug 8, 2002
5
DE
Hi!

I've a lil' problem here:

Code:
'1. Try
    stLinkCriteria = "'[namen]![team] = Me!Kombinationsfeld1' and"
    stLinkCriteria = stLinkCriteria & Statusr & Welche

'2. Try
    'stLinkCriteria = "(" & "team=" & "'" & Me![Kombinationsfeld1] & "'" & ")" & "and"
    'stLinkCriteria = stLinkCriteria & Statusr & Welche
  
  stDocName = "Bericht 582 offene Aufträge für E4"
  DoCmd.OpenReport stDocName, acPreview, , stLinkCriteria


I click a button, and when it runs this Rountine it wants a parameter for "team" (It's part of a linked table). But this parameter is configured in the combobox named "Me!Kombi....". It happens on the 1. also on the 2. codepiece.

I've no idea what the problem is or how I can avoid this "parameterbox". Maybe I'm just %-).

K, I hope you'll understand my *lol* german English and can help me with this.

Bye & BB
 
Try the following:

stLinkCriteria = "Team = '" & Me!Kombinationsfeld1 & "' and "
stLinkCriteria = stLinkCriteria & Statusr & Welche

Though I dont know what Statusr and Welche are, so dont know if it will work. The above should fix the Team part anyway. To test it separately if you need to, just use

stLinkCriteria = "Team = '" & Me!Kombinationsfeld1 & "'"

Good luck
Cheers,

Steve Lewy
Solutions Developer
steve@lewycomputing.com.au
 
hmmm, thx.

This was one "error". I've found another which was the main reson that this was not workable.

But thx & BB :)

Daniel
 
hmmm,

Sounds like I wasted my time on this one. Hope youve got it sorted out. Cheers,

Steve Lewy
Solutions Developer
steve@lewycomputing.com.au
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top