473,398 Members | 2,088 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,398 software developers and data experts.

Open Acces form

17
Hi,
I am new to this. How do I track if my question is answered? do I get an email?

My Question,

I have a database form with a command button that opens a data entry form. The problem is that on some user machines it opens fine, but on others it does not open? Any ideas on what could be the problems?

Thanks
Ginnyp
Sep 25 '06 #1
12 1715
PEB
1,418 Expert 1GB
Is there an error message?

What is the code?

:)
Sep 25 '06 #2
GinnyP
17
Is there an error message?

What is the code?

:)
Hi,
Thanks for the quick reply. So far I have figured out that some of my linked tables are linked to a "Z:" drive instead of using the generic name. Those people that do not have a z drive cannot access. I have just taken over maintaining this database. How would I have these linked tables point to the name of the drive instead of a letter???

Thanks
Sep 25 '06 #3
GinnyP
17
Hi,
Thanks for the quick reply. So far I have figured out that some of my linked tables are linked to a "Z:" drive instead of using the generic name. Those people that do not have a z drive cannot access. I have just taken over maintaining this database. How would I have these linked tables point to the name of the drive instead of a letter???

Thanks
I think I figured out. There is a module that remaps all the linked tables. Two of my tables were not remapped, So a added and what do you know....It works :).

Thanks for the support
Sep 25 '06 #4
PEB
1,418 Expert 1GB
Pleasure for me :)

:)

Best regards!

:)
Sep 25 '06 #5
GinnyP
17
Pleasure for me :)

:)

Best regards!

:)
Hi new question. I run a report in cognos, save as excel and import to access. I would like to run in the background from access. I can start cognos running but need to know how to do the following. Open the file to run, enter userid and password, save to excel, I know how to do the import part. I have tried to rewrite code in Access but keep blowing up on space. The tables that I read from are 200thousand plus. Below is the code. Any suggestions.

Thanks for your support


GinnyP

select

T1.HANDLING_OFFICE, T2.CUR_ADJUSTOR_NO, T3.ADJUSTOR_NAME, T2.BRANCH_CD,

T2.CASE_NO, T2.SYMBOL, T2.ABSTRACT_DT, T2.CLM_CREATE_DT, T2.CLMNT_NM,

T1.LOSS_DT, T1.LOSS_DESC_1, T1.LOSS_CATAS_NO, T1.CLM_STAT, T2.IND_OS,

T2.IND_PD, T2.LEG_PD, T2.ADJ_PD, (((T2.IND_OS + T2.IND_PD) + (T2.LEG_PD + T2.ADJ_PD))

+ (T2.RECOVERY_REC + T2.SALVAGE_REC)) + T2.SUBRO_REC as INCURRED, T2.RECOVERY_REC,

T2.SALVAGE_REC, T2.SUBRO_REC, T4.POL_NO, T4.INSD_NM, T4.EFF_DT, T2.MAJOR_CLASS_CD,

T2.MAJOR_CLASS_TYPE, T5.MAJOR_CLASS_DESC, T6.DIVISION_CD, T6.DEPARTMENT,

T6.SECTION_CD, T6.PROFIT_UNIT, T7.CLAIM_ST_ALPHA, T2.INJURY_DAMAGE_1,

T1.LOSS_LOCATION, T2.CLM_CLOSE_DT, T2.LOSS_DT_REPORTED, T2.IND_REOPEN_DT, T8.ZIP_1_TO_5, t8.addr_ln_1, t8.addr_ln_2, addr_ln_3,

min(t9.fin_process_dt) as Date_First_Ind_Pmt, min(T10.ASSIGNMENT_OPEN_DT) as Vars_Assign_Date

from

{oj CQLYLRPP.TCLAIM T2 LEFT OUTER JOIN CQLYLRPP.TFINANCIALS T9

on T2.BRANCH_CD = T9.BRANCH_CD and T2.CASE_NO = T9.CASE_NO and T2.SYMBOL = T9.SYMBOL

and t9.resv_typ = 'I' and t9.paid_or_resv_am <> 0},

CQLYLRPP.TREF_ADJUSTOR T3, CQLYLRPP.TPOL T4,

CQLYLRPP.TREF_MAJOR_CLASS T5, CQLYLRPP.TCOVG_KEY_EXTRACT T6,

CQLYLRPP.TREF_STATECD T7, {oj CQLYLRPP.TCASE T1 LEFT OUTER JOIN ANDDLMSP.CLM_NMS T8

on T1.BRANCH_CD = T8.BRANCH_CD and T1.CASE_NO = T8.CASE_NO and t8.use_cd = 'LLA'},

{oj CQLYLRPP.TCLAIM T11 left outer join CQLYLRPP.TASSIGNMENT_REPORT T10 on

T11.BRANCH_CD = T10.BRANCH_CD AND

T11.CASE_NO = T10.CASE_NO AND T11.SYMBOL = T10.SYMBOL_no}

where T2.BRANCH_CD NOT in (676, 677, 678) and

T4.POL_NO <> 9999999 and T4.POL_NO <> 999999999 and T1.CLM_STAT <> 'M' and

T6.DIVISION_CD in (66, 74, 93, 28, 92, 97) and

T1.LOSS_CATAS_NO in ('04605', '04705', '04905', '05005', '05105', '05405') and

T7.CLAIM_ST = T1.LOSS_ACC_ST_PROV and

T2.SYMBOL = T6.SYMBOL and T2.CASE_NO = T6.CASE_NO and

T2.BRANCH_CD = T6.BRANCH_CD and T2.MAJOR_CLASS_CD = T5.MAJOR_CLASS_CD and

T1.POL_NO = T4.POL_NO and T1.MODULE = T4.MODULE and

T1.ANN_STMT_CO = T4.ANN_STMT_CO and

T3.ADJUSTOR_NO = T2.CUR_ADJUSTOR_NO and T1.CASE_NO = T2.CASE_NO and

T1.BRANCH_CD = T2.BRANCH_CD and

T11.branch_cd = T2.branch_cd and T11.CASE_NO = T2.CASE_NO and t11.symbol=t2.symbol and

case when t1.handling_office = 869 and (t2.symbol = 2 or t2.symbol = 3 or t2.symbol = 4 or t2.symbol = 5 or t2.symbol = 6 or t2.symbol = 7 or t2.symbol = 8 or t2.symbol = 9) then 'flag' end is null

group by

T1.HANDLING_OFFICE, T2.CUR_ADJUSTOR_NO, T3.ADJUSTOR_NAME, T2.BRANCH_CD,

T2.CASE_NO, T2.SYMBOL, T2.ABSTRACT_DT, T2.CLM_CREATE_DT, T2.CLMNT_NM,

T1.LOSS_DT, T1.LOSS_DESC_1, T1.LOSS_CATAS_NO, T1.CLM_STAT, T2.IND_OS,

T2.IND_PD, T2.LEG_PD, T2.ADJ_PD, T2.RECOVERY_REC,

T2.SALVAGE_REC, T2.SUBRO_REC, T4.POL_NO, T4.INSD_NM, T4.EFF_DT, T2.MAJOR_CLASS_CD,

T2.MAJOR_CLASS_TYPE, T5.MAJOR_CLASS_DESC, T6.DIVISION_CD, T6.DEPARTMENT,

T6.SECTION_CD, T6.PROFIT_UNIT, T7.CLAIM_ST_ALPHA, T2.INJURY_DAMAGE_1,

T1.LOSS_LOCATION, T2.CLM_CLOSE_DT, T2.LOSS_DT_REPORTED, T2.IND_REOPEN_DT, T8.ZIP_1_TO_5, t8.addr_ln_1, t8.addr_ln_2, addr_ln_3
Sep 25 '06 #6
PEB
1,418 Expert 1GB
Hi,

So this is a bit strange for SQL in Access!

Can you tell me what is the meaning of {oj in the SQL! This is really the first time that I see it!

With this SQL you want to treat your data from Excel or what?

And what is this cognos? Isn't possible to introduce data directly from cognos to Access without passing by Excel?

Sorry about the questions but I really need more info to know what to say!

:)

Hi new question. I run a report in cognos, save as excel and import to access. I would like to run in the background from access. I can start cognos running but need to know how to do the following. Open the file to run, enter userid and password, save to excel, I know how to do the import part. I have tried to rewrite code in Access but keep blowing up on space. The tables that I read from are 200thousand plus. Below is the code. Any suggestions.

Thanks for your support


GinnyP

select

T1.HANDLING_OFFICE, T2.CUR_ADJUSTOR_NO, T3.ADJUSTOR_NAME, T2.BRANCH_CD,

T2.CASE_NO, T2.SYMBOL, T2.ABSTRACT_DT, T2.CLM_CREATE_DT, T2.CLMNT_NM,

T1.LOSS_DT, T1.LOSS_DESC_1, T1.LOSS_CATAS_NO, T1.CLM_STAT, T2.IND_OS,

T2.IND_PD, T2.LEG_PD, T2.ADJ_PD, (((T2.IND_OS + T2.IND_PD) + (T2.LEG_PD + T2.ADJ_PD))

+ (T2.RECOVERY_REC + T2.SALVAGE_REC)) + T2.SUBRO_REC as INCURRED, T2.RECOVERY_REC,

T2.SALVAGE_REC, T2.SUBRO_REC, T4.POL_NO, T4.INSD_NM, T4.EFF_DT, T2.MAJOR_CLASS_CD,

T2.MAJOR_CLASS_TYPE, T5.MAJOR_CLASS_DESC, T6.DIVISION_CD, T6.DEPARTMENT,

T6.SECTION_CD, T6.PROFIT_UNIT, T7.CLAIM_ST_ALPHA, T2.INJURY_DAMAGE_1,

T1.LOSS_LOCATION, T2.CLM_CLOSE_DT, T2.LOSS_DT_REPORTED, T2.IND_REOPEN_DT, T8.ZIP_1_TO_5, t8.addr_ln_1, t8.addr_ln_2, addr_ln_3,

min(t9.fin_process_dt) as Date_First_Ind_Pmt, min(T10.ASSIGNMENT_OPEN_DT) as Vars_Assign_Date

from

{oj CQLYLRPP.TCLAIM T2 LEFT OUTER JOIN CQLYLRPP.TFINANCIALS T9

on T2.BRANCH_CD = T9.BRANCH_CD and T2.CASE_NO = T9.CASE_NO and T2.SYMBOL = T9.SYMBOL

and t9.resv_typ = 'I' and t9.paid_or_resv_am <> 0},

CQLYLRPP.TREF_ADJUSTOR T3, CQLYLRPP.TPOL T4,

CQLYLRPP.TREF_MAJOR_CLASS T5, CQLYLRPP.TCOVG_KEY_EXTRACT T6,

CQLYLRPP.TREF_STATECD T7, {oj CQLYLRPP.TCASE T1 LEFT OUTER JOIN ANDDLMSP.CLM_NMS T8

on T1.BRANCH_CD = T8.BRANCH_CD and T1.CASE_NO = T8.CASE_NO and t8.use_cd = 'LLA'},

{oj CQLYLRPP.TCLAIM T11 left outer join CQLYLRPP.TASSIGNMENT_REPORT T10 on

T11.BRANCH_CD = T10.BRANCH_CD AND

T11.CASE_NO = T10.CASE_NO AND T11.SYMBOL = T10.SYMBOL_no}

where T2.BRANCH_CD NOT in (676, 677, 678) and

T4.POL_NO <> 9999999 and T4.POL_NO <> 999999999 and T1.CLM_STAT <> 'M' and

T6.DIVISION_CD in (66, 74, 93, 28, 92, 97) and

T1.LOSS_CATAS_NO in ('04605', '04705', '04905', '05005', '05105', '05405') and

T7.CLAIM_ST = T1.LOSS_ACC_ST_PROV and

T2.SYMBOL = T6.SYMBOL and T2.CASE_NO = T6.CASE_NO and

T2.BRANCH_CD = T6.BRANCH_CD and T2.MAJOR_CLASS_CD = T5.MAJOR_CLASS_CD and

T1.POL_NO = T4.POL_NO and T1.MODULE = T4.MODULE and

T1.ANN_STMT_CO = T4.ANN_STMT_CO and

T3.ADJUSTOR_NO = T2.CUR_ADJUSTOR_NO and T1.CASE_NO = T2.CASE_NO and

T1.BRANCH_CD = T2.BRANCH_CD and

T11.branch_cd = T2.branch_cd and T11.CASE_NO = T2.CASE_NO and t11.symbol=t2.symbol and

case when t1.handling_office = 869 and (t2.symbol = 2 or t2.symbol = 3 or t2.symbol = 4 or t2.symbol = 5 or t2.symbol = 6 or t2.symbol = 7 or t2.symbol = 8 or t2.symbol = 9) then 'flag' end is null

group by

T1.HANDLING_OFFICE, T2.CUR_ADJUSTOR_NO, T3.ADJUSTOR_NAME, T2.BRANCH_CD,

T2.CASE_NO, T2.SYMBOL, T2.ABSTRACT_DT, T2.CLM_CREATE_DT, T2.CLMNT_NM,

T1.LOSS_DT, T1.LOSS_DESC_1, T1.LOSS_CATAS_NO, T1.CLM_STAT, T2.IND_OS,

T2.IND_PD, T2.LEG_PD, T2.ADJ_PD, T2.RECOVERY_REC,

T2.SALVAGE_REC, T2.SUBRO_REC, T4.POL_NO, T4.INSD_NM, T4.EFF_DT, T2.MAJOR_CLASS_CD,

T2.MAJOR_CLASS_TYPE, T5.MAJOR_CLASS_DESC, T6.DIVISION_CD, T6.DEPARTMENT,

T6.SECTION_CD, T6.PROFIT_UNIT, T7.CLAIM_ST_ALPHA, T2.INJURY_DAMAGE_1,

T1.LOSS_LOCATION, T2.CLM_CLOSE_DT, T2.LOSS_DT_REPORTED, T2.IND_REOPEN_DT, T8.ZIP_1_TO_5, t8.addr_ln_1, t8.addr_ln_2, addr_ln_3
Sep 26 '06 #7
GinnyP
17
Hi,

So this is a bit strange for SQL in Access!

Can you tell me what is the meaning of {oj in the SQL! This is really the first time that I see it!

With this SQL you want to treat your data from Excel or what?

And what is this cognos? Isn't possible to introduce data directly from cognos to Access without passing by Excel?

Sorry about the questions but I really need more info to know what to say!

:)
Thanks,

I guess I did'nt word the question well. I can start cognos running from access, but I need to "specify what file to open and the userid and password to use", in addition specify to save to excel speadsheet". Can this information be executed through access?

Thanks for your help
Virginia
Sep 26 '06 #8
PEB
1,418 Expert 1GB
Virginia,

If your program cogno can update those parameters as command line

Use

i=Shell("Cognos -UserId -pwd myfile",1)

And this is sure that U can save a file from Access to Excel programatically!

:)
Sep 26 '06 #9
GinnyP
17
Virginia,

If your program cogno can update those parameters as command line

Use

i=Shell("Cognos -UserId -pwd myfile",1)

And this is sure that U can save a file from Access to Excel programatically!

:)
Again thanks for the quick response.
I have exported data to excel spreadsheet using access, what I need to do is direct cognos to save as excel. I can then import from access. I think I will try at command line, as you suggested. I just need to figure out the syntax.

Thanks for you help

GinnyP
:)
Sep 26 '06 #10
PEB
1,418 Expert 1GB
If You explain me more about the direct cognos I'll be more usefull!

However my English isn't native ant it's very poor... If everybody that has native english understant what is the cognos i can't!

Pls be gentle and if u have a time explain me what is this cognos! I'll be greatfull to you!

And if I understand better maybe can be more usefull!

:)

Thanks!

:)
Sep 26 '06 #11
GinnyP
17
If You explain me more about the direct cognos I'll be more usefull!

However my English isn't native ant it's very poor... If everybody that has native english understant what is the cognos i can't!

Pls be gentle and if u have a time explain me what is this cognos! I'll be greatfull to you!

And if I understand better maybe can be more usefull!

:)

Thanks!

:)
Hi,

Thanks again for your input. Cognos is another type of reporting application, that is being used to extract data from a very large DB2 database. The SQL I sent you is from Cognos. I tried to recreate in access, but it has not been a success. So I thought it might be better just to have Cognos run report and save as excel and then I can import. As I emailed earlier I would like this to be automatic. Does this help?

Thanks
GinnyP
Sep 27 '06 #12
PEB
1,418 Expert 1GB
So Cognos exports the results from DB2 always in Excel isn't it?

To treat this files further so you can import or link them in Access!

Thanks for the information!

Vladimir :)
Sep 30 '06 #13

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

Similar topics

2
by: zino | last post by:
I have a file that is created in Excel and saved as an htm file. (if I open the file through Excel it open as Excel file, if I click on the file name it open in internet explorer). I need to...
1
by: TTD_hck | last post by:
Hello, I need suggestions for the following. I have a acces 97 database and with a script command in acces 97, I can e-mail a file via outllok. I do this with the folowing command in Acces 97:...
0
by: sven_hub | last post by:
Hello everybody, I read interstings posts by Andy and Willy, but it didn't help regarding my configuration. I try to make a WMI query on a "distant" server, that is actually part of the same...
5
by: Mrozu | last post by:
Hi I have frm1. On this form button.Click code for this button is: Dim frm2 as New frm2 frm2.show So after click, frm2 form is shown.
4
by: Yoshitha | last post by:
Hi I am developing a C#.Net windows application for my project. In that project I have an IDE to work on. The application is similar to Adobe Photoshop. My requirement is as follows. 1) I must...
0
by: Phil Stanton | last post by:
I am trying to view the design of tables and queries in another database. This is the code on a form, "ObjectName.Column(0))" is the name of a table or query selected from the other database. I...
9
by: Matt | last post by:
How would I do this ... I want to set the Windows Scheduler to run the ..bat file which will open an access database at like 2 in the AM. What code do I need in the .bat file.
4
by: Rinaldo | last post by:
Hi, when I trying to open the form designer in 2008 I get the following error: The service Microsoft.VisualStudio.Shell.Interop.ISelectionContainer already exists in the service containter....
6
by: zaankanter | last post by:
Hi, This my problem. After distribution of my acces-application I want the new user to be able to enter his Name-adress-etc values, in a one-row table called program-variables. These will be used...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.