![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi everyone It's been at least 2 years since I have done any Access work as I am doing more in Excel than anything nowadays, that said..!! I have an old DB I built for a friend a long, long, long time ago which needs some updating and I would like to do a DMAX() lookup from a table so I can display the highest value within a matching group on said form. =DMax([txtBreedID],[tblBreeds],[txtcategory]=[Forms]![frmBreeds]![txtcategory]) The syntax for this is wrong as it displays NAME# Appreciate the assist. TIA Mick =DMax("[txtBreedID]","[tblBreeds]","[txtcategory]='" & |
#3
| |||
| |||
|
#4
| |||
| |||
|
|
Hi Rin Appreciate the assist. Although your equation evaluated to #Error This is where you put your troubleshooting skills to work. You need to |
#5
| |||
| |||
|
#6
| |||
| |||
|
|
Hi everyone It's been at least 2 years since I have done any Access work as I am doing more in Excel than anything nowadays, that said..!! I have an old DB I built for a friend a long, long, long time ago which needs some updating and I would like to do a DMAX() lookup from a table so I can display the highest value within a matching group on said form. =DMax([txtBreedID],[tblBreeds],[txtcategory]=[Forms]![frmBreeds]![txtcatego*ry]) The syntax for this is wrong as it displays NAME# Appreciate the assist. TIA Mick |
#7
| |||
| |||
|
|
Bob Your suggestion netted me the repsonse of " txtCategory='6' " |
|
so in retrospect, it gave me the Category number. |
#8
| |||
| |||
|
#9
| |||
| |||
|
|
Hi Bob I was expecting the highest BreedID number for the Category. so in Query form SELECT Max(BreedID) FROM tblBreeds WHERE Category = Forms!frmBreeds!txtCategory. You misunderstood me I guess. Let me try again. |
#10
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |