stLinkCriteria = "CUSTOMER_ID = " & CUSTOMER_ID
stDocName = "NEW INVOICE"
DoCmd.OpenForm stDocName, , , stLinkCriteria
"NEW INVOICE" opens with TONUMBER) in key field and no other data
If I leave it open and go back to the other form and click the ID again
it fills in with the data.
I just redid this whole screen because I couldn't get my other approach
to work and this worked (or seemed to at first). Once I get it up the
first time everything is fine and the sub form works too. Any
suggestions? 3 1372
SDL wrote:
stLinkCriteria = "CUSTOMER_ID = " & CUSTOMER_ID
stDocName = "NEW INVOICE"
DoCmd.OpenForm stDocName, , , stLinkCriteria
"NEW INVOICE" opens with TONUMBER) in key field and no other data
If I leave it open and go back to the other form and click the ID again
it fills in with the data.
I just redid this whole screen because I couldn't get my other approach
to work and this worked (or seemed to at first). Once I get it up the
first time everything is fine and the sub form works too. Any
suggestions?
Do you have any code in the OnOpen or OnLoad events that would change
the recordsource? Anything in the recordsource that would limit it to a
specific customer?
I don't have anything in those areas at the moment, but I did add a
line just to stop it there and the data that should be passed is absent
on this first pass. If I hit a record again on that previous screen and
it appears as I said when I try it again.
salad wrote:
SDL wrote:
stLinkCriteria = "CUSTOMER_ID = " & CUSTOMER_ID
stDocName = "NEW INVOICE"
DoCmd.OpenForm stDocName, , , stLinkCriteria
"NEW INVOICE" opens with TONUMBER) in key field and no other data
If I leave it open and go back to the other form and click the ID again
it fills in with the data.
I just redid this whole screen because I couldn't get my other approach
to work and this worked (or seemed to at first). Once I get it up the
first time everything is fine and the sub form works too. Any
suggestions?
Do you have any code in the OnOpen or OnLoad events that would change
the recordsource? Anything in the recordsource that would limit it to a
specific customer?
I found out that it was the Cycle being set to Current_Record. It is
kind of a bummer as I didn't want them scrolling thru customers on this
screen, but perhaps I can find another way around that.
SDL wrote:
I don't have anything in those areas at the moment, but I did add a
line just to stop it there and the data that should be passed is absent
on this first pass. If I hit a record again on that previous screen and
it appears as I said when I try it again.
salad wrote:
SDL wrote:
stLinkCriteria = "CUSTOMER_ID = " & CUSTOMER_ID
stDocName = "NEW INVOICE"
DoCmd.OpenForm stDocName, , , stLinkCriteria
>
"NEW INVOICE" opens with TONUMBER) in key field and no other data
>
If I leave it open and go back to the other form and click the ID again
it fills in with the data.
I just redid this whole screen because I couldn't get my other approach
to work and this worked (or seemed to at first). Once I get it up the
first time everything is fine and the sub form works too. Any
suggestions?
>
Do you have any code in the OnOpen or OnLoad events that would change
the recordsource? Anything in the recordsource that would limit it to a
specific customer?
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Lyn |
last post by:
Hi,
I have a Search input form which collects from the user a person's name. I
am using LIKE with a "%" suffix in the SQL so that the user does not have to
type in the full name. When they hit...
|
by: Lyn |
last post by:
Hi,
I have been experiencing a problem passing a LIKE statement in the WHERE
argument of a DoCmd.Openform statement. I have posted that issue
separately.
However, in an attempt to work around...
|
by: Thelma Lubkin |
last post by:
formA determines some_where and some_value and issues
docmd.close ,Me
docmd.openform "formB", , ,some_where, , ,some_value
formB receives the correct some_where and some_value
After...
|
by: John Welch |
last post by:
I have a command button with the following code:
DoCmd.OpenForm "frmSearchAssignments", , , "SearchAssignmentID = 1"
(SearchAssignmentID is the PK, auto number)
When it runs, the form opens but...
|
by: Mike |
last post by:
I am trying to open a search results form based on the input from a
prompt form. I am using the following code:
--- Begin Code ---
Private Sub btnSearch_Click()
'Dim Variable and assign data...
|
by: corey11 |
last post by:
I'm a very low-level developer with limited VB knowledge but nonetheless was able to put together a very user-friendly and extremely helpful Access 97 database for my company some 10 years back. We...
|
by: RAG2007 |
last post by:
Hi all,
Have a question I can't get around. I've done this before and for some reason can't get it to work this time.
I'm opening a form through docmd.openform, and trying to get it to open an...
|
by: rdsandy |
last post by:
Hi,
I am using Access 2003. I have a list box on a form which has 6 columns in it, with data taken from a table. I have an unbound text box which holds the ID number for the selected item in the...
|
by: emanning |
last post by:
Using Access 2003 and using a form that's mostly bound. I need a way
to tell if user-1 is on the record when user-2 tries to open the same
record, w/o waiting for the user-1 to save the record...
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
| |