473,378 Members | 1,411 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Problem in creating partial replica MS ACCESS Version: 2003

Hello everyone.
Your help is very much appreciated.
I am using MS ACCESS 2003.
I am trying to create partial replica from the design master.
it all goes well until I try to set the filter using:
repPartial.Filters.Append "Customers",jrFilterTypeTable,"Customers.Regio n = 'CA' "
It throws an error:
"Invalid expression in the ReplicaFilter property".

The replica db, does contain "Customers" table, which has "Region" field.

The code, looks like:
Expand|Select|Wrap|Line Numbers
  1. dim repFull as new JRO.Replica
  2. repFull.ActiveConnection = "C:\Program Files\Microsoft Office\OFFICE11\SAMPLES\northwind.mdb"
  3. Call repFull.CreateReplica("C:\MY_REPLICA.mdb", "description", jrRepTypePartial)
  4.  
  5. Set repFull = Nothing
  6. ' open the partial replica in exclusive mode and apply filters
  7. repPartial.ActiveConnection = "Data Source=C:\MY_REPLICA.mdb; Mode=Share Exclusive"
  8. repPartial.Filters.Append "Customers", jrFilterTypeTable, "Customers.Region = 'CA' "
  9.  
  10.  

Thank you for you help.
Cheers
Roy
Mar 4 '07 #1
3 2406
ADezii
8,834 Expert 8TB
Hello everyone.
Your help is very much appreciated.
I am using MS ACCESS 2003.
I am trying to create partial replica from the design master.
it all goes well until I try to set the filter using:
repPartial.Filters.Append "Customers",jrFilterTypeTable,"Customers.Regio n = 'CA' "
It throws an error:
"Invalid expression in the ReplicaFilter property".

The replica db, does contain "Customers" table, which has "Region" field.

The code, looks like:
Expand|Select|Wrap|Line Numbers
  1. dim repFull as new JRO.Replica
  2. repFull.ActiveConnection = "C:\Program Files\Microsoft Office\OFFICE11\SAMPLES\northwind.mdb"
  3. Call repFull.CreateReplica("C:\MY_REPLICA.mdb", "description", jrRepTypePartial)
  4.  
  5. Set repFull = Nothing
  6. ' open the partial replica in exclusive mode and apply filters
  7. repPartial.ActiveConnection = "Data Source=C:\MY_REPLICA.mdb; Mode=Share Exclusive"
  8. repPartial.Filters.Append "Customers", jrFilterTypeTable, "Customers.Region = 'CA' "
  9.  
  10.  

Thank you for you help.
Cheers
Roy
Are you missing the following Declaration?
Expand|Select|Wrap|Line Numbers
  1. Dim repPartial as New JRO.Replica
If Data Source and Mode are Named Arguments, wouldn't the syntax be:
Expand|Select|Wrap|Line Numbers
  1. repPartial.ActiveConnection = "Data Source:=C:\MY_REPLICA.mdb; Mode:=Share Exclusive"
Mar 4 '07 #2
Are you missing the following Declaration?
Expand|Select|Wrap|Line Numbers
  1. Dim repPartial as New JRO.Replica
If Data Source and Mode are Named Arguments, wouldn't the syntax be:
Expand|Select|Wrap|Line Numbers
  1. repPartial.ActiveConnection = "Data Source:=C:\MY_REPLICA.mdb; Mode:=Share Exclusive"
Thank you Adezii.
I'll try it and see what comes up.
Mar 5 '07 #3
ADezii
8,834 Expert 8TB
Thank you Adezii.
I'll try it and see what comes up.
You're welcome - hope it works for you.
Mar 5 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

12
by: Bing Wu | last post by:
Hi, Has anyone got problem with this on large table. It seems it take ages to return the result ( half an hour :-( ). SELECT COUNT(*) FROM COORDINATE A strange thing is the tempory space...
2
by: John Sims | last post by:
Hello All, Anybody out there know what this error is...I'm getting it while trying to create a partial replica from a full replica made from the design master. "The Partial Replica Wizard has...
8
by: Ondine | last post by:
Hi I have a client running an Access 2000 database on a small network with 3 pc's. Two of the laptop pcs have a data replica, which they use when not connected to the network, the 'server'...
4
by: Jeff Smith | last post by:
Hi Is there a way to do partial replication of data? I'm looking at having a central back end data file which contains all the data from all users. But when each user synchronises the mobile...
5
by: stupi | last post by:
I have an access database replicated over a network. Recently and more often, after I fill one record into the database, and then try to replicate it, I get this message "scaling of decimal values...
3
by: Ddraig | last post by:
Howdy, I've spent a good 2 or 3 hours this morning trying to figure out this code. I'm new to the .Net environment and have some VB6 skills but that was 3 years ago. My project I'm working on...
3
by: Shiva | last post by:
Hi, In my partial replica only the contents of a few tables is being updated / synchronized when I synchronize it with another replica. Is it possible to find out which tables are synchronized?...
3
by: roypython | last post by:
Hello everyone. Your help is very much appreciated. I am trying to create partial replica from the design master. it all goes well until I try to set the filter using: repPartial.Filters.Append...
3
by: MRileyDE | last post by:
I am working on an replica Access database with VB Coding that is used by multiple computers. On some computers, when one opens the database - a db1.mdb will appear as if it's copying itself. For...
1
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.