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!

Select data from browse screen for edit screen

Status
Not open for further replies.

JustLJ

MIS
Oct 15, 2002
70
US
Greetings.

I’m very stuck on this and I’m sure it’s easy (based on what I’ve recently read)... but obviously things are beyond my skills or my environment is actually different. (I'm sure it's me.)

Using MSAccess 2002.

I have a table of Project Meetings [OTM], containing project number [PNUM as string], meeting date [MDate as date], meeting occurrence [MO as whole number] , attendees (four different checkboxes to indicate attendance) [AT1-4 as Boolean] and meeting comments [MC as memo].

The section of the tracking application at issue allows people to add a new meeting, or to view meetings which have occurred. Now people being people, they want the ability to select a meeting to update if they see something while browsing the list of meetings for a project. On the browsing screen [View], the fields are locked to prevent accidental editing. I want to add the ability to select a meeting occurrence, pop-up a new screen [View-Edit] to edit and then return to the browsing.

I can’t seem to get the data from the browsing to the pop-up. I’ve tried public variables (and in that vein, I can’t find a datatype of memo in the VBA); I’ve tried building a select query of the fly (the receiving form doesn’t accept it as a valid data input). Anyway, perhaps you can see that I am not only dead-in-the-water but pretty hopeless as well and can really use some handy tips on how to retrieve just that record on the fly and then update it.

Thank you in advance!
LJ
 
Have a look at the 4th argument of the DoCmd.OpenForm method.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Thanks for the reply. I’m presuming you are referring to the “where” condition, commonly built by the wizard with the stLinkCriteria variable. The problem is, the edit pop-up doesn’t have any data to match; and if the table is used as the source, then the string match has to be the project and the date and the occurrence. Is there a way to do that as a where? As is, where me![PNUM] = [PNUM] AND me![MDATE] = [MDATE] AND me![MO] = [MO]; if so, I haven’t been able to make that work.

Maybe I’m confused about what the datasource for the edit pop-up should be. Any thoughts about that?

Thanks again for your time.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top