Making a table...!

Hello team,
I want to create a flat file or in a sense a table in Microsoft Access.
I have 9 warehouses, 562 items and 12 months. So I need to have a table with 9 X562X12 rows.
My warehouse are 100,101,102,103,104,105,106,107,108,109.
Warehouse 100 has to run 562 time for 12 months
So the first row of table would be
Warehouse   Item      Month
100               Item1    1
100               Item2    1
and so on.
Having said this, we need to have 562 rows for Warehouse 100 and Month 1 and 562 rows for Warehouse 100 for month 2 and so on.
What is best approach? Can we write a query to take care of this scenario?
After all how can we create serial number is Access?
I appreciate any response.
Thanks,
GGGGGNNNNN
GGGGGNNNNN

Hi GN,
As the reply from Tom, I think it could achieve what you want. You could create a table with design as below
Then, you could add a method in the module1 in the vba as below:
Sub testfor()
Dim rs As DAO.Recordset
Dim w As Integer
Dim i As Integer
Dim m As Integer
Set rs = CurrentDb.OpenRecordset("WarehouseBak", dbOpenDynaset)
For w = 100 To 109
For m = 1 To 12
For i = 1 To 562
rs.AddNew
rs!Warehouse = w
rs!Item = "Item" & i
rs!Month = m
rs.Update
Next i
Next m
Next w
End Sub
If you want to solve this problem through designing queries, the reply from KARL has resolved your issue, and you just need change the order to achieve what you want.
SELECT CountNumber.CountNUM AS Warehouse, CountNumber_1.CountNUM AS Item, CountNumber_2.CountNUM AS Months
FROM CountNumber, CountNumber AS CountNumber_1, CountNumber AS CountNumber_2
WHERE (((CountNumber.CountNUM)<=9) AND ((CountNumber_1.CountNUM)<=562) AND ((CountNumber_2.CountNUM)<=12))
ORDER BY CountNumber.CountNUM, CountNumber_2.CountNUM,CountNumber_1.CountNUM;
Best Regards,
Edward
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.

Similar Messages

  • Can I update datas of Power Query after making relation tables in Power Pivot ?

    Can I update datas of Power Query after making relation tables in Power Pivot ?
    I want to update datas at day by day to viewing today's graph by Power View on Excel.
    Power Query use to transform web site to Power Pivot data model table.
    Power Pivot use to making relasing tables, and making measuers.
    Regards,
    Yoshihiro Kawabata.

    Hi Yoshihiro,
    Can you share an example of the things you are doing in Power Pivot? There are some operations that prevent the query from being refreshed in Power Query; this is not ideal so we are currently working on fixing it.
    Thanks for your feedback.

  • Making fact table

    hi,
    im having a relationship in the physical layer:
    T1--< T2 --< T3 --< FactTable >-- T4
    The fact table also has many to 1 relationship to another table which has its own relationships to other tables but the problematic area is here.
    I wanted to change this relationship in the business model to be fact table will have many to one relationship to all the table (including T1 and T2) to resemblance a star schema, removing the relationship between T1 to T2 and T2 to T3 (the complete design is much more complicated so im trying to do some muscling to reduce the complexity).
    In the business model and mapping layer, i do:
    1. Created 2 new column in factTable T1key and T2 key. (obviously no T3 key column needed since fact table already contains that)
    2. In the logical source table of the factTable, i added T2 and T3, making the relationship there such as:
    factTable - T3: inner join
    T3 - T2 : inner join
    3. Navigate to the column mapping tab:
    - map T1key to t1key (foreign key of T1 table that T2 table contains) in T2 table
    - map T2key to t2key (foreign key of T2 table that T3 table contains) in T3 table
    4. Navigate to the foreign key tab:
    - adding foreign key from factTable to T2 on factTable.T2Key = T2.t2Key
    - adding foreign key from factTable to T3 on factTable.T3Key = T3.t3Key
    I already has the "flag allow logical foreign key join creation" checked
    => when i try to create new analysis with a column from t1,t2,t3,t4 => error: No fact table exists at the requested level of detail.
    This has happened to me before when i dont create the foreign key in the physical layer and doing it on the business model layer..... Im thinking the foreign key i created at step 4 also somehow ignored by BI thus the problem... What am i missing??

    I found it very difficult to understand your problem.
    Based on what i understood
    T1 < T2 = 1:M
    T2 < T3 = 1:M
    T3 < Fact = 1:M
    T4< Fact = 1:M
    simplest way to represent this as Star in BMM is
    Create a Logical Table T3 with T3, T1 and T2 in the LTS
    Create logicla table T4 and Fact
    So you will have a perfect star in BMM T3< Fact> T4.
    In physical layer it is still going to snowflake T1< T2< T3<Fact>T4 whatever you do.
    So I think you are complicating things too much by adding T2 and T3 in Fact logical table.
    Hope it helps.

  • Making  simple table (chart)?

    I need to make a kind of table (like a grid) as a layer over an image. I will need to do this often, so I am hoping to learn a fast way to do this (I'm new to this work).
    Basically I need a rectangle frame, 30cm high, with column lines at 7cm intervals all the way along (for example extending to 140cm wide in total). Rather than draw the lines by hand (I don't even know how to make them properly horizontal or vertical yet) I am hoping there are some tricks as to how to do this fast, and propery measured.
    Really appreciate any help!

    If You have Illustrator on Your machine it might be easier to create the graphics there and insert them as a Smart Object.
    Other than that there are of course options in Photoshop:
    One could create a path-rectangle with the Rectangle Tool (U), then hit command-T and enter the correct values (including the measurement units in the W- and H-fields), with the Pen Tool (P) selected command-alt-click the Path (to activate all points), copy and paste, command-T again, enter the correct value in the X-field, then hit command-alt-shift-T a number of times (thus creating additional copies with the last Transformation applied to each one).
    Then with the Brush selected hit the Stroke path-button.
    Or starting from that path one could create a Solid Color-Layer (white, then set to multiply, thus making it invisible) and add a Stroke-Layer Effect with Position: Center.

  • Error in Making Maintainenace Table

    hi i am getting the following error while making the maintanace table for my Z Table.
    <i>In DYNPFIELD_ATTR field LENGTH has the invalid value 250</i>
    help me its urgent.
    abhishek suppal

    Hi abhishek ,
    i think maximal length of a dynpro field is 132
    (-> message SV 626)
    Andreas

  • Making a Table cell editable. Please Help

    Hello there,
    I have written an Inner class called CallHeaderRenderer
    which is used to select to highlight a row from a table.
    But i am unable to edit the column data I click on.
    Please can any one tell me how to edit the column value when you double click on it??
    Attached is my Inner class used to select the concerned row.
    I am unable to edit the concerned column.....
    Please help.!!!
    What is the statement to make the cell editable!!!
    class CallHeaderRenderer extends DefaultTableCellRenderer{
    public CallHeaderRenderer(){
    super();
    public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column){
    // Set the highlight for record chosen.
    super.getTableCellRendererComponent(table,value,isSelected,hasFocus,row,column);
    return this;
    }

    A renderer has nothing to do with editing the cell. I suggest you read this section from the Swing tutorial on "Using Tables" for an explanation of how tables work. The tutorial will give one method for making a cell editable:
    http://java.sun.com/docs/books/tutorial/uiswing/components/table.html
    Here is an alternate way to make a cell editable:
    table = new JTable( ... )
        public boolean isCellEditable(int row, int column)
            //  All columns, except the first, are editable
            if (column == 0)
                return false;
            else
                return true;
    };

  • Making a table a link?

    I have a client who has asked me to make an entire web page
    one big link. The web page is one big table with all the elements
    inside the table. I figured making the entire table one big link
    was the best way to do this, but I don't know if that's possible..
    .and if so, how to do it. Is it? And if not, do I have any other
    options? Thanks!
    Julie

    or, do a screen capture of a browser view and save as a .jpg
    and link the
    .jpg. But, it seems like an odd request.
    "Nancy" <[email protected]> wrote in message
    news:gprl5i$8vv$[email protected]..
    I guess .. but why would anyone do this? Try selecting the
    table and put in
    the link info and you should end up with the a tags
    surrounding the table
    tag.
    I wouldn't do it tho.
    Nancy Gill
    Adobe Community Expert
    Author: Dreamweaver 8 e-book for the DMX Zone
    Co-Author: Dreamweaver MX: Instant Troubleshooter (August,
    2003)
    Technical Editor: Dreamweaver CS3: The Missing Manual,
    DMX 2004: The Complete Reference, DMX 2004: A Beginner's
    Guide
    Mastering Macromedia Contribute
    Technical Reviewer: Dynamic Dreamweaver MX/DMX: Advanced PHP
    Web Development
    "Kenford" <[email protected]> wrote in
    message
    news:gpr4o1$j2t$[email protected]..
    >I have a client who has asked me to make an entire web
    page one big link.
    >The
    > web page is one big table with all the elements inside
    the table. I
    > figured
    > making the entire table one big link was the best way to
    do this, but I
    > don't
    > know if that's possible.. .and if so, how to do it. Is
    it? And if not, do
    > I
    > have any other options? Thanks!
    >
    > Julie
    >

  • How to binnding the data in the adobe interactive forms for making a table?

    Hi, experts,
    Function:
    Through the sharing context node between adobe interactive form and a WDA for ABAP, display the data of the sflight_node in the ADOBE.
    version:
    Acrobat Reader 8.1.0
    currently both of the SAP-ABA and SAP-BASIS SP level: 9
    ADS : Successful.
    The following is my action:
    1.     Create a interface (Z_SFLIGHT_INTF) with a attribute node (SFLIGHT_NODE) that type is "sflight"  using the transaction code "sfp"
    2.     Create a form (Z_SFLIGHT_FORM) using the transaction code "sfp" with the interface Z_SFLIGHT_INTF.
    3.     Trag the sflight_node in the Z_SFLIGHT_INTF to the form( Z_SFLIGHT_FORM).
    4.     Open the layout tab in the form(Z_SFLIGHT_FORM), and create a table(table1). Click the table created just now, select the binding tab in the object tab, and in the Default Binding, select the SFLIGHT_NODE under the Z_SFLIGHT_FORM.
    Problem 1:
    Do you tell me whether is right for binding the context SFLIGHT_NODE using this way? If bind 3 context attributes in the sflight, how can I do it?
    5.     Create a WDA for abap (ZZ_02_SFLIGHT), and create a view(MAINVIEW) using transaction code "se80" in the sap-gui with adobe interactive form. Set the templatesource(Z_SFLIGHT_FORM) in the  adobe interactive form properties and saved, and then, datasource is "MAINVIEW_Z_SFLIGHT_FORM" automatically.
    6.     But I only found the attribute SFLIGHT_NODE under the context node(Z_SFLIGHT_NODE), and  I don't found the NODE ( SFLIGHT_NODE ) context in the context tab in the WDA for abap so that I don't set data to the context NODE (SFLIGHT_NODE).
    Problem 2:
    Do you tell me what can I do it so that I get the node SFLIGHT_NODE rather than attribute in the WDA for setting the data to the CONTEXT NODE (SFLIGHT_NODE)?
    Thanks a lot.
    Best regards,
    Tao

    Hi, experts,
    You can reply back to me via e-mail if you think we should discuss this internally at [email protected] or [email protected]
    Thanks a lot.
    Best regards,
    tao

  • Making a table add rows with a formula?

    Hi
    I would like to know if the following is possible.
    Lets say I have a table (Table1) and another table (Table2).
    Table1 will contain a name and an amount so each rows has two cells.
    Table2 will contain information from Table1 but filled in at appropriate places. The issues here is as follows. If i create a template for this I cannot ahead of time know how many rows Table1 will contain since this will vary depending on the circumstances. However Table2 should be protected but for that to work I would have to find a way for table2 to creat the appropriate rows needed depending on how many rows are in table1. Is this at all possible or is this beyond the scope of Numbers?
    If my questions is unclear in any way the please feel free to ask me to clarify.
    Thanks

    I never type $C$4 in the posted formula.
    Is it so difficult to copy paste the posted formula ?
    (1) In the table which you describe, values are in rows 1, 2, 3 which are standard rows.
    As the Barry's answer was with tables embedding an header row, I did the same.
    As my formula assumes that the two tables have an header row it's perfectly normal that it fails.
    May you make the effort to download iWork Formulas and Functions User Guide and read the description of the used formulas ?
    (2) As you replaced $C$1 by $C$4, in your document, the formula is trying to sum values which are lower than Row 4 so it's logically returning 0.
    Here is the document which was used to build the formula.
    In cell A1 of Tableau 2b, the formula is :
    =SI(PETITE.VALEUR(Tableau 1b :: E;LIGNE())=99999;"";SOMME(DÉCALER(Tableau 1b::$C$1;PETITE.VALEUR(Tableau 1b :: E;LIGNE())-1;0;1;2)))
    In English it would be :
    =IF(SMALL(Tableau 1b :: E,ROW())=99999,"",SUM(OFFSET(Tableau 1b::$C$1,SMALL(Tableau 1b :: E,ROW())-1,0,1,2)))
    In Swedish I assume that it would be :
    =OM(MINSTA(Tableau 1b :: E;RAD())=99999;"";SUMMA(PASSA(Tableau 1b::$C$1;MINSTA(Tableau 1b :: E;RAD())-1;0;1;2)))
    This time, be fair enough to :
    (a) temporarily rename your main table as Tableau 1b
    (b) apply copy & paste !
    When you will check that it behave well, reset the table's original name.
    The formula will automatically reflect the change.
    Yvan KOENIG (VALLAURIS, France) vendredi 24 février 2012
    iMac 21”5, i7, 2.8 GHz, 12 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.3
    My Box account  is : http://www.box.com/s/00qnssoyeq2xvc22ra4k

  • Making dynamic table header

    Hi,
    I want to know how to put some value on a table header dynamically.
    Regards
    Hawker

    When the footer goes to the 2nd page the page subform is incremented so you will have to reference the page subform as well. I suggest that you add a button (this is for a test only) to the footer subform and add the code app.alert(this.somExpression). Now render the form and make sure the footer stays on one page. Hit the button and take note of the someExpression. Now add enough rows to force the footer to a new page. Hit th ebutton again and take note of the changed somExpression. So to solve your problem you will have to find out which page your footer is on. and then construct your expression to incorporate this chane in expression. Note that the indexes are 0 based but the page numbering is 1 based.
    Hope that helps
    Paul

  • Trying to get this table to "bleed" all the way to the top.., Making a table "bleed" off to the top of browser

    Hi everyone.
    Im new to these forums, and have decided (or more like
    forced..hehe) to use CSS. Now, i am going over the tutorials, but
    have yet to see something that can help me out. (Or my CSS
    understanding needs more understanding). I am trying to make a
    table/div bleed all the way to the top and bottom.. If you take a
    look at this site:
    http://www.helenbwilson.com
    Ok, I want to keep the black background, but I want the white
    to run all the way to the top and bottom-that is, just having black
    to the sides. Can I acheive this, without having to do a complete
    makeover of the site? I am willing to do that, but right now, I
    want to get my friends site up and running, and when one is
    complete, I want to go in and re-do it in CSS (Which i will make
    another topic so I can get help with that..) But for right now, I
    was wondering if there is something I can do about it right now. I
    am using Dreamweaver 8.
    Any help would be greatly appreciated!
    Thanks, and hopefully I will get better at CSS..
    -psypent

    you have to remember what stacks are for, and many people don't.
    they're not designed to categorise and group images. they're designed to group images which are almost identical. for example, when I'm shooting a neighbourhood bird, I'll usually take 10 or more photos of the bird in the same setting with almost the same pose. I'm not sure which photo will have better focus or in which photo the bird's expressions will be better. once back in Aperture, I can group these near-identical photos into a stack and then rank them (I actually prefer to rank them first before stacking). the result is that I only see the best image from that set. if there are other photos in the stack that are different or that I might want to use independently, they'll have to be removed from the stack.
    alternatively but not as ideal, you could view the images in Multi mode, applying ratings and keywords to the images even while they are in stacks. you could then use Smart Albums to get to specific images within stacks by turning on the 'Ignore Stacks' preference at the bottom of the filter HUD.

  • Making a Table/Table Non-editable

    I have a table made by a DefaultTableModel which then produces a JTable. I have set a listener on to the JTable to recognise when a row is selected. What I also want to do is make it so the user can not type new information into the table. It doesn't actually store anything in the background but I want all the data to stay the same visually as it does when it first appears.

    try this
    JTable table = new JTable() {
          public boolean isCellEditable(int rowIndex, int vColIndex) {
          if (vColIndex == 0) { // What ever the col index is
             return (false);
          else {
             return (true);
       };

  • Making 10 table control rows to be displayed always

    Dear All,
    How to make a table control display 10 lines always..?

    Hi,
    Thanks for the response
    I have 3 table controls in a single screen. Each will have minimum 7-10 rows ( filled data ). I need to display all the table with all the rows visible to the user without scrolling.
    At present though I define the lines as 10 for each table they are getting adjusted to 4 lines per table and getting fit to the screen.
    But what I need is irrespective of the size of the monitor it should display all the tables with all the data. The screenmay have the scroll but not the tablecontrol.
    for e.g
    Table 1 Actual data is
    1 flight
    2 Train
    3 Car
    4 Flight
    5 Hotel
    6 Other
    7 Car
    But it is displayed as with scroll option for table control
    1 flight
    2 Train
    3 Car
    4 Flight
    I need it to be displayed as irrespective of the size of monitor
    1 flight
    2 Train
    3 Car
    4 Flight
    5 Hotel
    6 Other
    7 Car
    Please help.
    Regards
    Sai

  • Making my table of contents link to the page within the ebook

    I have a  40+ word document that I converted to pdf format, but lost the document internal links that was set up with the table of contents in Word.  Can someone please help me figure out how to make the table of contents have the internal links again?  I need this asap!!!!
    Thank you!

    If you have Acrobat Standard or Professional installed Adobe PDFMaker is available.
    Use it to convert the Word file to PDF.
    As there are specific "bands of compatibility" vis-a-vis an Office release and an Acrobat release you do want to ensure that the version of Acrobat used is compatible with the version of Office installed.
    Properly configured (via the settings under the different tabs in the dialog) , Adobe PDFMaker will convert the Word file to a Tagged output PDF with the active links.
    Tagged output PDF is needed for PDF ebooks that are to be used on eReaders as this facility is what supports reflow (needed for the smaller screen size, eh).
    Oh yes, smaller, appropriate page size helps too (but I'd guess you've got that already).
    Regarding Acrobat (PDFMaker) compatibility ... See:
    TechNote ID 333504 –
    Acrobat PDF-capable web browsers and PDFMaker-compatible applications (Acrobat 6.x - 9.x on Windows and Mac OS)
    http://kb2.adobe.com/cps/333/333504.html
    Joel Geraci's blog article –
    Version Compatibility of Acrobat PDFMakers
    http://blogs.adobe.com/pdfitmatters/2008/12/version_compatibility_of_acrob.html
    Be well...

  • SQl Developer - making multiple tables

    I have the following code:
    CREATE TABLE "STAFF"
    "STA_ID" VARCHAR2(20 BYTE) NOT NULL ENABLE,
    "STA_SURNAME" VARCHAR2(20 BYTE),
    "STA_FIRSTNAME" VARCHAR2(20 BYTE),
    "STA_STARTDATE" DATE,
    "STA_JOBTITLE" VARCHAR2(20 BYTE),
    "STA_SALARY" NUMBER,
    "STA_ACTIVE" VARCHAR2(20 BYTE),
    "STA_STAMP" VARCHAR2(20 BYTE),
    PRIMARY KEY ("STA_ID"),
    CONSTRAINT staff_ck_sta_salary CHECK (STA_SALARY>0 AND STA_SALARY<100000.00)
    CREATE TABLE "HIRE"
    "HIR_ID" VARCHAR2(20 BYTE) NOT NULL ENABLE,
    "HIR_BRA_ID" VARCHAR2(20 BYTE),
    "HIR_CUS_ID" VARCHAR2(20 BYTE),
    "HIR_STA_ID" VARCHAR2(20 BYTE),
    "HIR_HIREDATE" DATE,
    "HIR_DUEDATE" DATE,
    "HIR_RETURNDATE" DATE,
    "HIR_CHARGE" VARCHAR2(20 BYTE),
    "HIR_PENALTY" VARCHAR2(20 BYTE),
    "HIR_TOTALPAID" NUMBER,
    "HIR_COMMENTS" VARCHAR2(50 BYTE),
    "HIR_STAMP" VARCHAR2(20 BYTE),
    PRIMARY KEY ("HIR_ID")
    In SQL Developer, if I select the SQL code for each table individually, I can run the statement and create each table. My question is this... can I select both lots of code and then create the tables with one press of the run statement button. I am asking this because I have many tables, and it is slow to do each one, one at a time.
    thanks
    Canning

    Hi,
    that is possible in sql * plus. but i don't know that option is there in sql developer or not.
    i think you have the sql plus so you can execute from that also.

Maybe you are looking for