Sabtu, 02 April 2016

Re: [MS_AccessPros] Is expression valid Office 2007 ?

 

Khalid-


In 2007, click the Office button in the upper left corner, then click Access Options / Current Database.

I have no clue why typing is causing an error - unless you have code that's interfering.  What is in the Row Source,  Column Count, Column Widths, Bound Column, Limit To List and Allow Value List Edits properties of that control?  Do you have any code associated with the control?

John Viescas, Author
Microsoft Access 2010 Inside Out
Microsoft Access 2007 Inside Out
Microsoft Access 2003 Inside Out
Building Microsoft Access Applications 
SQL Queries for Mere Mortals 
(Paris, France)



On Apr 2, 2016, at 2:30 PM, khalidtanweerburrah@yahoo.com [MS_Access_Professionals] <MS_Access_Professionals@yahoogroups.com> wrote:



John,

Yes it worked, when i did it as you said i converted it to .Mde on his machine.

One thing i could not get there on Access 2007, the Tools menu where i can open the 'Starup' for .Mde and hide database window and status bar, what i have thought that open that .mde on my machine and then modify the 'Startup' options and then copy that to my users machine.

My second question was for CustomerID, while entering CustomerID through keyboard instead of selecting from combo box drop down list, it displays my defined message box for 'Not in List' event. (on users machine only)

Thanks for doing the favour up to now.

Khalid


---In MS_Access_Professionals@yahoogroups.com, <JohnV@...> wrote :

Did you compile the VBA project after you removed the missing library?  And if it compiled and saved OK, did you then convert that to .mde on his machine?

John Viescas, Author
Microsoft Access 2010 Inside Out
Microsoft Access 2007 Inside Out
Microsoft Access 2003 Inside Out
Building Microsoft Access Applications 
SQL Queries for Mere Mortals 
(Paris, France)



On Apr 2, 2016, at 9:58 AM, khalidtanweerburrah@... [MS_Access_Professionals] <MS_Access_Professionals@yahoogroups.com> wrote:



John,

I opened the .mdb (FE) on my users system and got message like:

"You have broken reference to the file 'AcroPDF.dll' version 1.0."

The i checked it in Tools--> References

MISSING was checked (Adobe Acrobat Browser Control Type Library 1.0

I unchecked it.

Now still on my FE and MDE the report is OK and showing "Month, Year", but not on the user's system.

Further on my user's system on a control for 'CustomerID'  if he enters CustomerID the message displays "The text you entered is not in list" even for its properties in Data tab its Limit to list property is set to Yes.
Same is the case here on my own system it does works.

Khalid


---In MS_Access_Professionals@yahoogroups.com, <JohnV@...> wrote :

I suspect the libraries aren't being updated correctly when your user tries to open using 2007.  You should send him the .mdb file and ask him to open any module to see if it compiles.  Is anything else broken in the database?  If so, that would be a clue.

John Viescas, Author
Microsoft Access 2010 Inside Out
Microsoft Access 2007 Inside Out
Microsoft Access 2003 Inside Out
Building Microsoft Access Applications 
SQL Queries for Mere Mortals 
(Paris, France)



On Mar 29, 2016, at 2:23 PM, khalidtanweerburrah@... [MS_Access_Professionals] <MS_Access_Professionals@yahoogroups.com> wrote:



John,

He is using Windows 7 with office 2007, then obviously his Access would be 2007. But i have put backend and MDE of in Access 2000-2003 format.

Khalid


---In MS_Access_Professionals@yahoogroups.com, <JohnV@...> wrote :

Then that should work.  Is your user running the same version of Access as you?
 
John Viescas, Author
Microsoft Access 2010 Inside Out
Microsoft Access 2007 Inside Out
Microsoft Access 2003 Inside Out
Building Microsoft Access Applications 
SQL Queries for Mere Mortals 
(Paris, France)



On Mar 29, 2016, at 1:44 PM, khalidtanweerburrah@... [MS_Access_Professionals] <MS_Access_Professionals@yahoogroups.com> wrote:



John,
 As i mentioned in my previous reply on Detail Section i have first bound control "SaleDate" with control source: SaleDate and these dates are displaying on detail section. Does it not suffice?

Regards,
Khalid


---In MS_Access_Professionals@yahoogroups.com, <JohnV@...> wrote :

Khalid-

Sometimes the Report engine can't find a field in the Record Source because it reformats the SQL to optimize it based on grouping, etc.  If you don't have SaleDate in a bound control on the Report, it's not guaranteed to be available at run time.  Try adding  a hidden text box containing that field.

John Viescas, Author
Microsoft Access 2010 Inside Out
Microsoft Access 2007 Inside Out
Microsoft Access 2003 Inside Out
Building Microsoft Access Applications 
SQL Queries for Mere Mortals 
(Paris, France)



On Mar 29, 2016, at 1:01 PM, khalidtanweerburrah@... [MS_Access_Professionals] <MS_Access_Professionals@yahoogroups.com> wrote:



John,

Reports Record Source is Query:

SELECT [Sales Retail Seller].OrderID, [Sales Retail Seller].SaleDate, [Sales Retail Seller].ItemReturned, [Sales Retail Seller].ReturnQty, [Sales Retail Seller].ReturnCost
FROM [Sales Retail Seller]
WHERE ((([Sales Retail Seller].ReturnQty)>0));

On SaleDate Header
Unbound Textbox: TransactionDate by Month
Control Source: =Format$([SaleDate],"mmmm yyyy",0,0)

On Detail Section:
Textbox: SaleDate, Control Source: SaleDate
.
.
.
4 more text boxes

I have given the user backend and MDE file, as i mentioned before the report is OK on my system but on user's system still not getting month, year On SaleDate Header other report on Detail section is OK there too. 

Regards,
Khalid


---In MS_Access_Professionals@yahoogroups.com, <khalidtanweerburrah@...> wrote :

John,

I will let you inform tomorrow.

Thanks for your reply.

Regards,
Khalid


---In MS_Access_Professionals@yahoogroups.com, <JohnV@...> wrote :

Then it should work just fine in 2007.  Is SaleDate a field in the Record Source?  Also, make sure you have no control named "SaleDate" on the form.

John Viescas, Author
Microsoft Access 2010 Inside Out
Microsoft Access 2007 Inside Out
Microsoft Access 2003 Inside Out
Building Microsoft Access Applications 
SQL Queries for Mere Mortals 
(Paris, France)



On Mar 28, 2016, at 12:24 PM, khalidtanweerburrah@... [MS_Access_Professionals] <MS_Access_Professionals@yahoogroups.com> wrote:



Hi John,

This is:

=Format$([SaleDate],"mmmm yyyy",0,0)

And it shows on my Laptop like:
March, 2016

Khalid



---In MS_Access_Professionals@yahoogroups.com, <JohnV@...> wrote :

That should be valid in 2007.  The #Name? indicates it doesn't know what [xxx] is.

John Viescas, Author
Microsoft Access 2010 Inside Out
Microsoft Access 2007 Inside Out
Microsoft Access 2003 Inside Out
Building Microsoft Access Applications 
SQL Queries for Mere Mortals 
(Paris, France)



On Mar 28, 2016, at 9:21 AM, Khalid Tanweer khalidtanweerburrah@... [MS_Access_Professionals] <MS_Access_Professionals@yahoogroups.com> wrote:



Hi All,

=Format$([xxx],"mmmm yyyy",0,0)
I'm using the above expression for Control Source of a Text box on a Report in access 2003 on a group header  to get
month ,year and is working.

But if the database is put on other computer having Office 2007 it does not shows
month, year and i get #Name?

My question is that is above expression valid for Office 2007? database running is 2000-2003 format.

OR the office 2007 installed there is corrupt OR that Windows 7 is not completely installed.

Khalid





__._,_.___

Posted by: John Viescas <johnv@msn.com>
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (15)

Have you tried the highest rated email app?
With 4.5 stars in iTunes, the Yahoo Mail app is the highest rated email app on the market. What are you waiting for? The Yahoo Mail app is fast, beautiful and intuitive. Try it today!


.

__,_._,___

Tidak ada komentar:

Posting Komentar