Welcome to Windows Help!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

FORM DOES NOT POPULATE WITH A2007

 
   Windows Help (Home) -> Microsoft Access RSS
Next:  Error when opening  
Author Message
Glint

External


Since: Feb 19, 2009
Posts: 2



(Msg. 1) Posted: Tue Dec 01, 2009 6:21 pm
Post subject: FORM DOES NOT POPULATE WITH A2007
Archived from groups: microsoft>public>access (more info?)

Good Day Guys,
Please help. I have this query that I developed on A2003 and it runs very
well:
SELECT Accounts.AccountID, Accounts.Account, vInExGroup.Zone,
vInExGroup.TemIn, vInExGroup.LIn, vInExGroup.TotalIn, vInExGroup.TemEx,
vInExGroup.LEx, vInExGroup.TotalEx, [TotalIn]-[TotalEx] AS Balance
FROM Accounts INNER JOIN vInExGroup ON Accounts.AccountID = vInExGroup.ACCode;

But my form InEx that is based on it does not display any record on A2007
while it works normally on A2003. What am I missing?
The Accounts is a table while vInExGroup is a query:
SELECT vCashTransactions0.Zone, vCashTransactions0.TDate,
vCashTransactions0.ACCode, vCashTransactions0.CashOrCheque,
vCashTransactions0.Amount, vCashTransactions0.ItemAmount
FROM vCashTransactions0
WHERE (((vCashTransactions0.Zone)=[Forms]![InEx]![Zone1]) AND
((vCashTransactions0.TDate)>=[Forms]![InEx]![SDate] And
(vCashTransactions0.TDate)<=[Forms]![InEx]![EDate]) AND
((vCashTransactions0.ACCode)<>47));

Thanks for your assistance.

 >> Stay informed about: FORM DOES NOT POPULATE WITH A2007 
Back to top
Login to vote
Glint

External


Since: Feb 19, 2009
Posts: 2



(Msg. 2) Posted: Tue Dec 01, 2009 10:46 pm
Post subject: RE: FORM DOES NOT POPULATE WITH A2007
Archived from groups: per prev. post (more info?)

Additional Details:
This is the code for the cmdProcess Button of the form:

Private Sub cmdProcess_Click()
On Error GoTo Err_cmdProcess_Click

If Not IsNull(Zone1) And Not IsNull(SDate) And Not IsNull(EDate) Then
If SDate > EDate Then
MsgBox "The dates are not workable.", vbInformation, "ECKANKAR
AREA ADMIN"
DoCmd.GoToControl "SDate"
Exit Sub
End If
Beep

lblWait.Visible = True
Me.Filter = "[Zone]=" & [Zone1]
DoCmd.DoMenuItem acFormBar, acRecordsMenu, 2, , acMenuVer70
lblWait.Visible = False
'Forms!InEx.Requery
'InExLodgement.Requery
'Forms!Inex!InExBalance.Form.Requery
'InExBalance.Requery
Else
MsgBox "You have to pick a zone and dates to work with.",
vbInformation, "ECKANKAR AREA ADMIN"
If IsNull(Zone1) Then
DoCmd.GoToControl "Zone1"
ElseIf IsNull(SDate) Then
DoCmd.GoToControl "SDate"
ElseIf IsNull(EDate) Then
DoCmd.GoToControl "EDate"
End If
Exit Sub
End If
'AsAt = EDate

Exit_cmdProcess_Click:
Exit Sub

Err_cmdProcess_Click:
MsgBox Err.Description
Resume Exit_cmdProcess_Click

End Sub

I had commented out the requery action of the form and its subforms because
that part of the code did not make any difference in the execution of the
remaining part. And the code still works well like that on my laptop that
runs A2003 while it does not on another that runs A2007. After removing the
comments, the form displayed records as expected on A2007.

My fear is that I am doing something wrong and this may have been repeated
in other areas of the application.
Please help me out.

 >> Stay informed about: FORM DOES NOT POPULATE WITH A2007 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
A Form that leads to a second Form - I have a button on my first form that opens up a second form which has a button on it leading to a third form. I would like the 3rd form to gather the client Name, Phone, ID from the first form. But when I do this I get the 1st record in the database....

Form calculations - I have a form that calculates totals when it is opened. I do not want the user to be able to do anything until the form completly calculates, this may take up to 10 seconds. how do I keep the user from clicking on anything until the form is..

Rebuilding a form - A2003: I inherited an mdb of which one form occasionally causes corruption. No backup available, I made one now. I also took measures to prevent this mdb from further corruption. I want to create a new form and drag all fields from the old form on top...

can't insert a form into a report - access 2007 won't display a form inserted into a report. This worked with Access 2003. Any ideas???

Validation rule for a form - How can I make Access check if two fields are not duplicated? i.e. one employee file number cannot have the same application number more than one time.
   Windows Help (Home) -> Microsoft Access All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]