Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.databases.ms-access > #9762
| From | "Phil" <phil@stantonfamily.co.uk> |
|---|---|
| Newsgroups | comp.databases.ms-access |
| Subject | Re: DLookup (subform) & GoToRecord (main form) |
| Date | 2014-08-11 16:23 +0100 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <lsan65$u01$1@speranza.aioe.org> (permalink) |
| References | <eug4u9hf5hh0jmfoeb5jhge77g8qqdqcm4@4ax.com> <03fcc01d-0bed-4611-90ff-0f2d37bba125@googlegroups.com> <9ighu99empr9nme9pl0jn9a1vguqju9ftm@4ax.com> |
>
> I still cant' get this to work. This:
>
> strWhere = DLookup(DE1Id, tblDE1Det, "[HTnum1] = " & Chr(34)
> & Forms!frmDE1.Form!txtHTDE1LU & Chr(34))
>
> ...throws:
>
> "Run-time error 2428:
> You entered an invalid argument in a domain aggregate
> function."
>
> I moved the closing paren just after txtHTDE1LU to the very
> end.
>
DLookup needs 2 strings for the field to look up and the table to look up,
and optionally a third string for the WHERE condiion.
Try strWhere = DLookup("DE1Id", "tblDE1Det", "[HTnum1] = " & Chr(34) &
Forms!frmDE1.Form!txtHTDE1LU & Chr(34))
Phil
---
This email is free from viruses and malware because avast! Antivirus protection is active.
http://www.avast.com
Back to comp.databases.ms-access | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
DLookup (subform) & GoToRecord (main form) croy <croy@invalid.net> - 2014-08-06 08:13 -0700
Re: DLookup (subform) & GoToRecord (main form) JB Guernsey <jeff@angelsystems.co.uk> - 2014-08-06 09:37 -0700
Re: DLookup (subform) & GoToRecord (main form) "Phil" <phil@stantonfamily.co.uk> - 2014-08-06 21:23 +0100
Re: DLookup (subform) & GoToRecord (main form) JB Guernsey <jeff@angelsystems.co.uk> - 2014-08-06 14:09 -0700
Re: DLookup (subform) & GoToRecord (main form) croy <croy@invalid.net> - 2014-08-11 06:30 -0700
Re: DLookup (subform) & GoToRecord (main form) "Phil" <phil@stantonfamily.co.uk> - 2014-08-11 16:23 +0100
Re: DLookup (subform) & GoToRecord (main form) croy <croy@invalid.net> - 2014-08-11 11:07 -0700
Re: DLookup (subform) & GoToRecord (main form) "Phil" <phil@stantonfamily.co.uk> - 2014-08-11 22:39 +0100
Re: DLookup (subform) & GoToRecord (main form) croy <croy@invalid.net> - 2014-08-12 06:30 -0700
Re: DLookup (subform) & GoToRecord (main form) croy <croy@invalid.net> - 2014-08-12 08:07 -0700
Re: DLookup (subform) & GoToRecord (main form) "Ron Paii" <None@none.com> - 2014-08-13 08:17 -0500
csiph-web