Opening a popup form

J

Jen

I'm having trouble with what should be a simple thing.

I have a primary key that's made up of three fields
(BookNumberPre, BookNumber, and BookNumberMod). In my
form, I want to use a button to open a popup form showing
some info for the currently open record. I've put the
following on the button:

DoCmd.OpenForm "BorrowingRecords", , , BookNumberPre = Me!
BookNumberPre And BookNumber = Me!BookNumber And
BookNumberMod = Me!BookNumberMod

But no matter what record is currently selected, it opens
the popup for the first record. Any idea what I'm doing
wrong?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

main form and popup 2
Setting a default zoom in Infopath 0
form opening 1
filling unbound form 1
Avoid duplicate names/entries 4
How do I clear a form? 0
Popup form 3
Implementing popup form 3

Top