value of the check box in the insert statement
I'm hand-coding an insert from the insert record sb construction will do for this application. The values of several form elements are inserted into the fields in the table. The problem that occur is a checkbox value in the form. If the box is checked, all is well and the value is 'True' inserted in the appropriate database field. However, if the checkbox is not checked I get syntax error message. The reason being that, while are passed on to the fields with null null, the checkbox is not transmitted at all. This is evident when changing the method of the form to 'Get' for testing purposes. There is no reference to this field check box in the query string.My assumption is that this would require an If statement changing the value of the 'False' check box when the box is blocked. How I would go to this topic. With my knowledge limited to the ASP, I wrote the following, but it doesn't seem to work:
< input name = "emailprob_mor" type = "checkbox" id = "emailprob_mor" value = "< % If Not (IsNull (Request.Form ("emailprob_cus")) then Response.Write"True") Else Response.Write ("False") End If % >" >
When you use the boxes, it is better to separate your Request.Form statement and your insert statement:
cbVal = '0 '.
If (Request.Form ("emailprob_mor") <> "") then cbVal = Request.Form ("emailprob_mor")
Then in your SQL statement:
"& cbVal &"..."
For your real HTML:
"" ) then response.write(" checked='checked' ") %>>
It is true that if the user does not check the box, then it appears as if there is no when it is submitted, that is the reason why he must be given a default value when the record is inserted.
Tags: Dreamweaver
Similar Questions
-
How to retrieve the value from the insert statement
Hello
How can I get a certain value of the insert and store it in a variable.
Suppose that I am inserting emp_no, emp_name, emp_salary for the employee table
and I want to record the emp_name in a variable for further processing,
How can I accomplish this? I guess I should use the trigger,
but do not know the procedure.
any help will be greatly appreciated
Thank youinsert into
values (...) return
in You can and should have found that using the SQL language reference manual
or
http://www.morganslibrary.org/reference/insert.html--------
Sybrand Bakker
Senior Oracle DBA -
Question related to the INSERT statement
Imagine this scenario:
-table_a has 5 000 000 records at time t1
-table_b is empty at time t1
-At time t1, I execute the following statement:
-L' insert statement ends in time t2insert into table_b select * from table_a;
-Between t1 and t2, say 3 000 new records have been added to the table_a (by OLTP processes).
Thus, at time t2, table_a has 5 003 000 records.
My question is, at time t2, the number of records will be in table_b? Will it 5,000,000 or
5 003 000 or somewhere between these two counts?
I guess it will be 5,000,000 because that is the number when the insert statement
has started to run.
Any comment is appreciated.Syed Ullah says:
Imagine this scenario:-table_a has 5 000 000 records at time t1
-table_b is empty at time t1
-At time t1, I execute the following statement:
insert into table_b select * from table_a;
-L' insert statement ends in time t2
-Between t1 and t2, say 3 000 new records have been added to the table_a (by OLTP processes).
Thus, at time t2, table_a has 5 003 000 records.My question is, at time t2, the number of records will be in table_b? Will it 5,000,000 or
5 003 000 or somewhere between these two counts?I guess it will be 5,000,000 because that is the number when the insert statement
has started to run.Any comment is appreciated.
At time t2, it is possible that the answer is 0. Once the insert operation finishes (can be any time after t1 in your example, possibly before t2, possibly after) and assuming you checked in the same session where you run the insert, you would see 5 000 000. In other sessions you would continue to see 0 up to what the session who made the done insert one COMMIT.
http://docs.Oracle.com/CD/E11882_01/server.112/e25789/consist.htm#CNCPT121
Is something that you should read. He described these concepts much better than what you'll probably find in a few posts on the forum.
-
need help to create the insert statement
I have customer_priv of table which has 4 columns (login, privilize_id, adate, added_by)
the stmt insert like "insert into customer_priv values('JDOE',951.sysdate,admin);
I have 100 users and for each user, I need to add to the 15 privilize_id
I have the list of connections and roles, what is the best way to create a massive insert for all those users statement and
any help is very appreciated
Thank youuser11984714 wrote:
Thanks FrankI get the below now.what Miss. Also is it possible to reel in a file insert rather directly the data.am I missing values?
Sorry, I don't understand what you want.
You say you want to write something in a HOLD file instead of insert? Of course, you can do it. Change the INSERT statement in a SELECT statement and add commands to the COIL.SQL > @c:\insert_many.sql
33 old: SELECT ' & 1' priv_id, 'admin', sysdate)
33 News: SELECT sysdate, "BNELSON", "admin", priv_id)Of all_priv_id
*
ERROR on line 34:
ORA-00923: THE KEYWORD not found where expected
Thank youPublished by: user11984714 on August 9, 2010 18:40
Sorry, there was a typing error in my previous post.
Remove the ')' the end of theSELECT '&1', privilze_id, SYSDATE, 'admin')
I hope that you have more problems, but if you do, post your code, even if you think that you just copied it from this site.
-
Is possible to write the INSERT statement that fills two columns: 'word' and 'sense' of the file text with multiple lines - in each line is followed word that is the meaning?
Hello
2796614 wrote:
Is possible to write the INSERT statement that fills two columns: 'word' and 'sense' of the file text with multiple lines - in each line is followed word that is the meaning?
Of course, it is possible. According to what the text file looks like to, you can create an external table that treats the text file as if it were a table. Otherwise, you can always read the file in PL/SQL, using the utl_file package and INSERT of PL/SQL commands.
You have problems whatever you wantt? If so, your zip code and explain what the problem is.
Whenever you have any questions, please post a small example of data (CREATE TABLE and only relevant columns, INSERT statements) for all of the tables involved and the exact results you want from these data, so that people who want to help you can recreate the problem and test their ideas. In this case, also post a small sample of the text involved file.
If you ask about a DML operation, such as INSERT, then INSERT statements, you post should show what looks like the tables before the DML, and the results will be the content of the table changed after the DML.
Explain, using specific examples, how you get these results from these data.
Always say what version of Oracle you are using (for example, 11.2.0.2.0).
See the FAQ forum: Re: 2. How can I ask a question on the forums?
-
How to use the Type of Oracle Table values in the Select statement.
Hello
I get the initial set of values in the Table of Type Records of the Oracle and want to use the list of values in the Select statement.
For example, try something like the following:
TYPE t_record () IS RENDERING
ID TABLEA.ID%type,
NO TABLEA.NO%type
);
v_record t_record;
T_table TYPE IS the v_record TABLE % TYPE;
v_table t_table;
-Code to fill the values of v_table here.
SELECT ID, NO, COLLECT in BULK IN < some other table variabes here > FROM TABLEA
WHERE ID IN (i) v_table USER.USER;
I want to know how to use the Type of Oracle Table values in the Select statement.Something like this:
create or replace type t_record as object ( id number, no number ) / CREATE or replace type t_table AS TABLE OF t_record; / set serveroutput on declare v_table t_table := t_table(); v_t1 t_table := t_table(); begin v_table.extend(1); v_table(1).ID := 1; v_table(1).No := 10; v_table.extend(1); v_table(2).ID := 2; v_table(2).ID := 20; SELEC t_record (ID,NO) BULK COLLECT INTO v_t1 from TableA FROM TABLEA WHERE ID IN (select t.ID from table(v_Table) t); for i in 1..v_t1.count loop dbms_output.put_line(v_t1(i).ID); dbms_output.put_line(v_t1(i).No); end loop; end; /
No test!
P;
Published by: bluefrog on March 5, 2010 17:08
-
How to select the values for each check box in a group of records
Hello
I have a requirement in form 10g. In this form there are 10 records are display each record has a checkbox is there if I click on the check box save number one and number three and make some changes in the text field (field adjustment is the number data type) and then finally, I want to see the total a total amount called field.
In this, my question is how to select specific to a group of records records? and finally these selected records are inserted in a table.
Because I am not able to read these records at a time.
Is there any table to define a record group to fetch each of them individually for example Rec [1] Rec [2]... like this if yes please suggest me the steps how to do this.
Thanks in advance
Prasanna
Published by: user10315107 on December 17, 2008 23:44OK, so you want to shoe the total amount in the form itself (I guess that somewhere under the dashboard lines?).
You can do this easily using formulat elements:
1 create a new item in your block where the field amount is places, set "section of the database" on the 'No', 'calculation mode' to the 'formula' and the 'formula' himself to something like:
CASE WHEN :BLOCK.CHECKBOXITEM=CHECKVALUE THEN :BLOCK.AMOUNT+:BLOCK.ADJUSTMENT ELSE 0 END;
This formula returns 0 if the checkboxitem is not checked, otherwise the sum of amount and adjustment (of course you can adjust the names of elements and the value for 'Checked')
2. place the element in the layout, if you wish.
3. set the property "Query all Records" to "true" for your block elements, this is necessary for the calculation to work
3 create a control block to keep summary article in a, "Single Document" set to 'True '.
4. place a new element in this control block, set 'Calcuation mode' to 'Summary', 'Summary block' to your block elements, 'Summary point' in newly created formula section in the block elements
and function of synthesis for the "sum".
5. place the element in the layoutShe's.
-
the value of a check box using javascript
Hi experts.
I have a button that displays or hide a region (which is actually a form of data entry with a couple of boxes and text areas). I can't send the form on this button is clicked, I chose the redirect URL and URL target, I used according
Please tell me how can I set the value of the checkbox to use 'unchecked' above excerpt of code.javascript: $('#AddActivity').show(); // used to show the region. works perfectly javascript: $x(P3_Emp_Name).value = '' ; // used to set value of Emp Name text box to empty for new entry javascript: $x(P3_Emp_FullTime).value = NULL; // used to show check box 'unchecked'.............here is the problem. dont get an unchecked check box if tried following also javascript: $x(P3_Emp_FullTime).value = 'N' ; and javascript: $x(P3_Emp_FullTime).value = N; but nothing works. check box retains what ever value last was selected.
ConcerningTry
javascript: $x('P3_Emp_FullTime_0').checked = false; instead of javascript: $x(P3_Emp_FullTime).value = NULL;
CITY
Published by: Anderson city on April 22, 2011 05:05
Published by: Anderson city on April 22, 2011 05:10
-
Export the value zero (0) check box cleared?
I have a form (Acrobat x) with checkboxes. I want to give rise to numerical values if checked or unchecked. I have this merged with other data and count the yes / no value is another problem. I did the exported value is 1. If the checkbox is not checked 'No' has failed.
Is there a way to make the value for a default value for the box unchecked to 0?
Have you created the form in Acrobat or LiveCycle Designer? If Acrobat, the value of the field when disabled is 'Off' and it cannot be changed. If LiveCycle Designer, you should be able to set the value off to 0.
-
updated in real time of the values when a check box is selected
Hello
I have a form with elements of the address
Physical street address, physical city etc etc.
I have also the same for address Street, city ett etc. on the same entry form
I want to include a checkbox which when selected fills the values of the mailing list
list physical values. The box would be as ' select this option if the update to the post office
the address is the same as the physical address '
I know how to do this with a process and send the page. May I, however, when the box is
selected, or at least define the display attributes for read only for items in the mailing address of the box is activated?
Thank you very much
SteveSteve,
No problem.
$x is a wrapper for the APEX to document.getElementById () JavaScript; It's a heck of a lot easier to simply use $x vs the longer string. Please keep in mind that it will be only when you include the JavaScript libraries of APEX, which, by default, are included with each page APEX.
What about a book, Yes, I can offer a: Pro Oracle Application Express (http://www.amazon.com/Oracle-Application-Express-Experts-Voice/dp/159059827X) Chapter 8 covers Ajax Javascript, & this is where I would start.
There are also a lot of other online resources, including this Forum, that can help you learn how to use JavaScript & APEX.
Thank you
-Scott-
http://spendolini.blogspot.com/
http://sumnertechnologies.com/ -
How to encode a calculation from a field value, and a check box?
How to make a field to calculate a commission based on another field (we'll call it "Total amount" for this example) and multiply % according to a box. I have 3 different series that are check boxes. Depending on whether one chooses a customer, "Total amount" would be multiplied by 8%, 3% or 0% to get our total commission
Good point George.
AdobNewbee, modify the script to be:
Set the text field's custom calculation script
var v = this.getField("Rate").value;
var t = this.getField("Total_Amount").value;
{if(v!=="OFF")}
Event.Value = v * t/100;
}
on the other
Event.Value = ""; -
Honestly, I really looked everywhere for this.
The problem is that, while tinkering in SQL Developer and knowing that in the spreadsheet I can just execute individual instructions by placing the cursor on the SQL statement I want to run I tried to do an INSERT query that would allow me to run an INSERT statement for... Well many inserts.
I thought I could use a brand of continuation but nothing I've tried has worked.
INSERT INTO
HF_easy_drinks
VALUES
("Blackthorn", "tonic water", 1.5, 1.0, "pineapple juice", "mix with ice").
("Blue Moon", "soda", 1.5 "Blueberry Juice",. 75, "mix with ice, strain")
;
I ended up doing just individual INSERT statements, which was not as convenient.
INSERT INTO HF_easy_drinks
VALUES ('Blackthorn', 'tonic water', 1.5, 1.0, "pineapple juice", "mix with ice");
INSERT INTO HF_easy_drinks
VALUES ('Blue Moon', 'soda', 1.5, 'Blueberry Juice',. 75, "mix with ice");
Hello
Perhaps you might prefer "an" insert like this:
INSERT INTO hf_easy_drinks (x, y, z,...)
SELECT "Blackthorn", "tonic water", 1.5, 1.0, "pineapple juice", "mix with ice" OF THE double
UNION ALL SELECT 'Blue Moon', 'soda', 1.5, 'Blueberry Juice',. 75, "mix with ice, strain ' FROM dual
SELECT UNION ALL... OF the double
SELECT UNION ALL... OF the double
;Best regards
Bruno Vroman.
-
Need help with the insert statement
Hello
I have a question on how to write a SQL statement.
This is the table of "base":
and it comes to resoult in the target table. SQL statement must take care of the insert in a base of the target table table (example below is already provided with test data).CREATE TABLE TEMP_TBL ( id_nr NUMBER, DATE_DOK DATE, DATE_DUE DATE, DATE_DOK_PAY DATE, DEB NUMBER, KRD NUMBER ); insert into temp_tbl (ID_NR,DATE_DOK,DATE_DUE,DATE_DOK_PAY,DEB,KRD)values('1',TO_DATE('11.01.2011','DD.MM.YYYY'),TO_DATE('25.02.2011','DD.MM.YYYY'),NULL,'423,24','0'); insert into temp_tbl(ID_NR,DATE_DOK,DATE_DUE,DATE_DOK_PAY,DEB,KRD)values('2',TO_DATE('16.12.2011','DD.MM.YYYY'),TO_DATE('13.06.2011','DD.MM.YYYY'),NULL,'91270,15','0'); insert into temp_tbl(ID_NR,DATE_DOK,DATE_DUE,DATE_DOK_PAY,DEB,KRD)values('3',TO_DATE('27.09.2011','DD.MM.YYYY'),TO_DATE('27.09.2011','DD.MM.YYYY'),NULL,'0','2000');
If someone could give me a helping hand how write correct insert statement I would be really gratefull.create table table_sod ( id_nr number ,date_from date ,date_to date ,deb_krd number ); One thing to note here : values in column deb_krd under insert 1 and 4 must be summarized in insert 4. insert into table_sod (id_nr,date_from,date_to,deb_krd) values('1',null,to_date('25.02.2011','dd.mm.yyyy'),'423,24'); insert into table_sod(id_nr,date_from,date_to,deb_krd) values('2',to_date('26.02.2011','dd.mm.yyyy'),to_date('13.06.2011','dd.mm.yyyy'),'423,24'); insert into table_sod(id_nr,date_from,date_to,deb_krd)values('3',null,to_date('13.06.2011','dd.mm.yyyy'),'91270,15'); insert into table_sod(id_nr,date_from,date_to,deb_krd)values('4',to_date('14.06.2011','dd.mm.yyyy')to_date('27.09.2011','dd.mm.yyyy'),'91693,39'); insert into table_sod(id_nr,date_from,date_to,deb_krd)values('5',null,to_date('27.09.2011','dd.mm.yyyy'),'2000');
Thank you for your time!I came here with my own assumptions with this
SQL> select rownum id_nr 2 , date_from 3 , date_to 4 , case when date_from is null then deb 5 else sum(case when date_from is not null then deb else 0end) over(order by id_nr, no) 6 end deb_krd 7 from ( 8 select id_nr 9 , case when lg_dt is null or ld_dt = date_due then null else lg_dt+1 end date_from 10 , ld_dt date_to 11 , case when deb = 0 then krd else deb end deb 12 , no 13 from ( 14 select t1.* 15 , lead(t1.date_due) over(order by t1.id_nr, t2.no) ld_dt 16 , lag(t1.date_due) over(order by t1.id_nr, t2.no) lg_dt 17 , t2.no 18 from temp_tbl t1 19 cross 20 join (select 1 no from dual union all select 2 no from dual) t2 21 order by id_nr, no 22 ) 23 where ld_dt is not null 24 ) 25 / ID_NR DATE_FROM DATE_TO DEB_KRD ---------- --------- --------- ---------- 1 25-FEB-11 42324 2 26-FEB-11 13-JUN-11 42324 3 13-JUN-11 9127015 4 14-JUN-11 27-SEP-11 9169339 5 27-SEP-11 2000
-
Help with the insert statement
Hello
I was wondering if someone could help write me a sql statement.
Here is my table:
Here are the instructions for correct insertion. This time, I posted 2 examples with 2 numbers different otherwise.CREATE TABLE "TEMP_INVOICE" ("INVOICE" VARCHAR2(100 BYTE), "DATE_OF_DOCUMENT" DATE, "DATE_OF_PAY_DAY" DATE, "D" NUMBER, "K" NUMBER );
I want to do is make an insert allows you to table another call is MADE:insert into temp_invoice (invoice,DATE_OF_DOCUMENT,DATE_OF_PAY_DAY,d,k) values (1000,to_date('01.02.2012','dd.mm.yyyy'),to_date('01.03.2012','dd.mm.yyyy'),5000,0); insert into temp_invoice (invoice,DATE_OF_DOCUMENT,DATE_OF_PAY_DAY,d,k) values (1000,to_date('01.04.2012','dd.mm.yyyy'),'','',1000); insert into temp_invoice (invoice,DATE_OF_DOCUMENT,DATE_OF_PAY_DAY,d,k) values (1000,to_date('01.05.2012','dd.mm.yyyy'),'','',3000); insert into temp_invoice (invoice,DATE_OF_DOCUMENT,DATE_OF_PAY_DAY,d,k) values (1000,to_date('01.06.2012','dd.mm.yyyy'),'','',1000); insert into temp_invoice (invoice,DATE_OF_DOCUMENT,DATE_OF_PAY_DAY,d,k) values (2000,to_date('01.07.2012','dd.mm.yyyy'),to_date('01.09.2012','dd.mm.yyyy'),8000,0); insert into temp_invoice (invoice,DATE_OF_DOCUMENT,DATE_OF_PAY_DAY,d,k) values (2000,to_date('01.10.2012','dd.mm.yyyy'),'','',5000); insert into temp_invoice (invoice,DATE_OF_DOCUMENT,DATE_OF_PAY_DAY,d,k) values (2000,to_date('01.11.2012','dd.mm.yyyy'),'','',2000); insert into temp_invoice (invoice,DATE_OF_DOCUMENT,DATE_OF_PAY_DAY,d,k) values (2000,to_date('01.12.2012','dd.mm.yyyy'),'','',1000);
Statements in the INVOICE table should be like this:CREATE TABLE "INVOICE" ("INVOICE" VARCHAR2(100 BYTE), "DATE_OF_DOCUMENT" DATE, "DATE_OF_PAY_DAY" DATE, "DATE_OF_PAYMENT_REC" DATE, "VALUE" NUMBER, "VALUE_DEDUCT" NUMBER, "DATE_FROM" DATE, "DATE_TO" DATE );
........ The Bill... date_of_document... date_of_pay_day... date_of_payment_rec... value... value_deduct... Date_from... Date_to
1...... 1000...............1.1.2012.................1.3.2012................NULL............................ 5000... NULL... 1.3.2012...1.4.2012
2...... 1000...............1.4.2012.................NULL..................... 1.4.2012...1000... 4000... 2.4.2012... 1.5.2012
3...... 1000...............1.5.2012.................NULL..................... 1.5.2012...3000... 1000... 2.5.2012... 1.6.2012
4...... 1000...............1.6.2012.................NULL..................... 1.6.2012...1000
Can someone help me with the sql statement that would insert data from table to table Bill temp_invoice as in the example?
Thank you!
PS
I would try to explain.
(1) the first statement that is to be inserted is original imply that at which is different DATE_OF_PAY_DAY to NULL.
To this inserted negative of the original imply, we must add date_from that is exatly the same date_of_pay_day and date_to which is exactly the same as the date of the first payment. Payment which came first!
(2) we have now in the second insert statement. It will be the first payment of lease with date_of_document and date_pf_payment_rec, which is the same as date_fo_document. Value field will be populated with the amount of payment received and value_deduct field will be the value of the original imply - value of the first payment. Date is date_of_document + 1 and date_to is the date of the next payment.
(3) Insert us the next installment. Date_od_payment_rec is the same as date_of_document... value is the amount of the second payment and value_deduct's previous value_deduct which was of 4000 - value of this second payment. date_from date_of_payment_rec + 1 and date_to is the date of the next payment
So we continue this same pattern until we reached the final payment when we finish insert with the statement:
Date of the document (date of the last payment received) and even for date_of_payment_rec and field value with the amount of the payment receieved. The rest (value_deduct, date_from, date_to) is null.
I really hope you understand what I'm trying to do here.
If you have any other questions please.
Published by: user13071990 on November 22, 2012 04:16
Published by: user13071990 on November 22, 2012 04:16Hello
user13071990 wrote:
... Here are the instructions for correct insertion. This time, I posted 2 examples with 2 numbers different otherwise.Ok!
Be sure to post the results you want new data.You probably need to add "PARTITION BY the Bill" to all analytical clauses in my solution:
INSERT INTO invoice ( invoice, date_of_document, date_of_pay_day, date_of_payment_rec , value, value_deduct, date_from, date_to ) SELECT invoice , date_of_document , date_of_pay_day , CASE WHEN k > 0 THEN date_of_document END AS date_of_payment_rec , NVL (d, k) AS value , NVL2 ( date_of_pay_day , NULL , SUM (d) OVER ( PARTITION BY invoice ORDER BY date_of_document ) - SUM (k) OVER ( PARTITION BY invoice ORDER BY date_of_document ) ) AS value_deduct , NVL ( date_of_pay_day , date_of_document + 1 ) AS date_from , LEAD (date_of_document) OVER ( PARTITION BY invoice ORDER BY date_of_document ) AS date_to FROM temp_invoice ;
Because I'm not an English speaker nativ, that I just posted what it should look like after the insert is successful.
OK, so you can't explain as you want, but you still need to explain.
... @Frank Kulash: you are very close, but still not quite what I'm looking for.
Point out where my solution is the production of incorrect results, and explain (as you can) how to get good results in these places.
-
Hi all
I need to insert rows into a table, all the columns are have same value except a column that is to say
insert into table values ('a', 'b', 'b', 'b');
insert into table values ('b', 'b', 'b', 'b');
Insert in the table values ('b', 'b', 'c', 'b');
y at - there no shortcut for insert because there are thousands of records to insert
Help, please
Thank youIf data are available in another table, you can use a select statement inside your insert statement.
Incomplete example
NSERT INTO TABLE ( COL1, COL2, COL3, COL4 ) SELECT FROM OTHERTABLE WHERE..., 'b' 'b' 'b' ...
The doc show this as an example:
INSERT INTO AIRPORTS (AIRPORT, CITY, COUNTRY) SELECT AIRPORT, CITY_NAME, COUNTRY FROM CITIES ORDER BY AIRPORT;
SELECT yourvalue, 'b', 'b', 'b' of...
Best regards
mseberg
Published by: mseberg on October 6, 2012 08:31
Maybe you are looking for
-
Firefox is no longer can be reduced to small screen
6.5.11 Hello Last week for some reason firefox screen cannot be reduced.Please sort. Yael Gev
-
I have droped my laptop please help
I droped my laptop a feet in height it works perfectly, but the problem is when I move my laptop. If I keep my laptop nd if she gets even a minute shock, it goes down. Even when I give you a little bit about the mouse pad it comes down. Please help m
-
My gmail on my Macbook pro account has been hacked since I'm unable to connect to it to receive emails, but can send emails. Any ideas would be welcome.
-
HP Envy m7-j120dx screen issues.
I just bought this a little over a month and today I noticed a black spot on the screen, it won't go away. Interesting what happened three days during the return policy. Any suggestions? I would really appreciate if you could help.
-
Is there a simple way to transfer files from Windows 7 to Windows 10?
Original title: want to transfer files on my Windows 7. Help! Still trying to get my files from my Windows 7 laptop to my Windows 8.1. Would it not easier that I have upgraded to Windows top 10? Is there a simple way to transfer from Windows 7 to