How to check table is NULL or not when a form load?

How to check table is NULL or not when a form load?
I want to make the form when it load it check the data in table, if there are no data in table other form will be load.
Sorry for bad English... 

Maybe you can do this in form1's Form_Open event:
if dcount("*", "table1") = 0 then
  Cancel = True
  Docmd.Openform "form2"
end if
-Tom. Microsoft Access MVP

Similar Messages

  • How to check table is creating or not

    Hi,
    I am creating only one table by running a table creation script(table.sql) which contain 366 partition.but I dont know whether table is creating or not.it is taking long time,sometimes I feel like script is hanging.even before running the script I have even spooled but spool file shows nothing. so how to check table is creating or not from background? can anyone please let me know abt this.this is bit urgent
    sql>spool table.log
    sql>@table_partition.sql

    hi,
    I am running the script table_partition which consist of 366 partition and 31 sub partition but the script is hanging.there is no hint in alert log file or anything wat might be the reason is it because of extent size? as extent size for this tablespace where table has to be create is 1mb,wat i suspect is do i need to set for higher value inorder to avoid this?
    with regards;
    Boo

  • How to check Reconcilliation has happened or not for a payment document

    Hi,
    How to check Reconcilliation has happened or not for a payment document? Payment doc ABCDEF was created on 2nd. Now i am not sure whethr RECON has happend ot not
    Please help.

    Dear,
    If you have made payment to vendor and want to know whether reconciliation happened or not then check if this document exist in table BSIK then reconciliation has not been done.
    Regards,
    Chintan Joshi.

  • How  to check  table have  exists any views in oracle

    hi,
    how to check table have exists any views in oracle

    SELECT * FROM user_dependencies
    WHERE type='VIEW'
    AND referenced_type='TABLE'
    AND referenced_name ='Your_Table_Name' You may use dba_dependencies to find views in different schema.

  • How to check oracle properly installed or not?

    Hello Friends,
    How to check oracle properly installed or not. cause during installation time the person who installed faced many problems. we have RISK base IBM p5 Series server and Oracle 10g RAC.
    i want to check installation made properly or not.
    Thanks,
    Nikunj Patel

    Installation for RAC environments means you are not only talking about one single installation, but several installations, and the number of installations and checking processes depend on factors such as the clusterware you are using, if you are using the Oracle clusterware or the proprietary clusterware, if you are using a separate oracle home to install the ASM or if you are using the same oracle home for both, the ASM and the RDBMS.
    First you must ensure you have installed all prerequisites according to your platform, i.e. patches, packages, kernel parameters, etc. which are listed at the install guide corresponding to your platform. Then you should use the cluvfy (cluster verifier tool) to check if the different install phases are properly installed
    The most critical and most of the times, problematic installation phase is the clusterware. So you should specify if you installed the Oracle clusterware or the proprietary clusterware. In a RAC environment if your clusterware is not properly installed, most probably you won't have a running RAC, so if your environment is functional there you may have high probabilities that it is OK, but to make sure, launch the cluvfy tool.
    The cluvfy tool verifies the process since the beginning and it ensures your environment meets the required minimum requirements to be at an operational level, it checks the pre/post install phases for the clusterware, pre/post install of the rdbms, and it is launched from the OS. It can be obtained as a standalone product or you can use the one found at the clusterware Oracle Home. For further references on this tool I suggest you to read this
    Oracle® Database Oracle Clusterware and Oracle Real Application Clusters Installation Guide
    10g Release 2 (10.2) for AIX
    Part Number B14201-04
    ~ Madrid

  • Read only af:table first row select and focus on form load

    I use a read only af:table in my page. When my page loads and I click on my table, then I can use up / down arrow keys to navigate in my table's rows. But if I don't click on the table, I can't navigate in my table's rpws.
    What can do in my page to give the first focus to my table's first row and navigate in my rows without using mouse clicks....
    findElementById function in javascript does not work in jdeveloper 11...
    Do you help me for this?
    Thanks..

    Hi,
    actually findElementById does work, but you should use the ADF client side framework for this. Add a clientListener to the component that intercepts the keyboard usage and make it callin the next record on the table.
    I'll take a note for a how-to to put on my blog as I don't have the code ready. However, its possible this way
    Frank

  • How to check program is running or not

    Hi,
    Is it possible to check whether a program is running or not?
    I know when you try to compile a package which is running, oracle does not allow you compile it, it hangs. That is, somehow, Oracle knows the program is running. How can we check this information?
    Suppose procedure below. If i ran it in one session, how can check that procedure p is running in other session?
    I searched the forum. There is one( checking if a package procedure is already running ) thread but noone has replied.
    Thanks....
    SQL> DROP TABLE T;
    Table dropped
    SQL> CREATE TABLE T AS SELECT DUMMY D FROM DUAL;
    Table created
    SQL> CREATE OR REPLACE PROCEDURE p IS
      2    s VARCHAR2(12);
      3  BEGIN
      4    SELECT d INTO s FROM t;
      5    LOOP
      6      EXIT WHEN s = 'Y';
      7      SELECT d INTO s FROM t;
      8    END LOOP;
      9  END p;
    10  /
    Procedure created
    SQL> exec p;

    I found the answer from another thread.( Package Compilation Hangs )
    Answer is : http://www.ixora.com.au/scripts/sql/executing_packages.sql

  • Checking cell is null or not

    Hi ,
    Iam using poi to read excel sheet. Iam reading line by line of excel sheet using HssfUserModel.
    Here is my code
    int numberOfRows = sheet.getLastRowNum();
    for (int i = 1; i <= numberOfRows; i++)
      HSSFRow row = sheet.getRow(i);
    //  check whether row is null or not
      if (row != null)
        int numberOfCells = row.getLastCellNum();
         for(int j=0;j <= numberOfCells;j++)
             HSSFCell cell = row.getCell((short)j);
             short cellNumber = cell.getCellNum();
          //check whether cell is null or not
              if(cell!=null)
                if(cellNumber ==  myTradeConstants.scripCode_column_Number)
                   cell =row.getCell(myTradeConstants.scripCode_column_Number);
                   scripCode =cell.getStringCellValue();
                   System.out.println("scripCode:"+scripCode);
            else
                  System.out.println("nocellValue");
                  break;
    else
       System.out.println("rowBreak");
       break;
    }My Excel sheet is also having so many number of rows. But it is displaying only first row of the excel sheet. n displaying "nullpointerException".
    why iam getting nullPointer Exception.
    I want to check whether a cell is having data or not.
    can anybody guide me in right dircection.
    regards,
    ramu.

    import java.io.FileInputStream;
    import java.io.IOException;
    import java.util.Iterator;
    import org.apache.poi.hssf.usermodel.HSSFCell;
    import org.apache.poi.hssf.usermodel.HSSFRow;
    import org.apache.poi.hssf.usermodel.HSSFSheet;
    import org.apache.poi.hssf.usermodel.HSSFWorkbook;
    import org.apache.poi.poifs.filesystem.POIFSFileSystem;
    public class cellCheck {
    * @param args
    public static void main(String[] args) {
              // TODO Auto-generated method stub
    try {
        POIFSFileSystem fs = new POIFSFileSystem(new FileInputStream(
                             args[0]));
        HSSFWorkbook workbook = new HSSFWorkbook(fs);
        HSSFSheet sheet = workbook.getSheet("Main");          // HSSFRow row = sheet.getRow(1);
         int numberOfRows = sheet.getLastRowNum();
       System.out.println("numberOfRowsInThe Sheet" + numberOfRows);
         String scripCode = null;
        for (int i = 1; i <= numberOfRows; i++)
         HSSFRow row = sheet.getRow(i);
         if (row != null)
         int numberOfCells = row.getLastCellNum();
         for(int j=0;j <= numberOfCells;j++)
                                  HSSFCell cell = row.getCell((short)j);
         short cellNumber = cell.getCellNum();
         if(cell!=null)
         if(cellNumber == myTradeConstants.scripCode_column_Number)
                                  cell =row.getCell(myTradeConstants.scripCode_column_Number);
                                      scripCode =cell.getStringCellValue();
                                      System.out.println("scripCode:"+scripCode);
                                  else
                                       break;
                        //else
                             System.out.println("rowBreak");
                             break;
              } catch (IOException ioe) {
                   // TODO: handle exception
                   System.out.println("IoException" + ioe.getMessage());
    }

  • How to check table difference QUICKLY?( symetic check, hash check, or ...)

    Hi. Everyone.
    I would like to know whether or not there is a difference
    between tables. The two tables are located
    at the differerent location, and network speed is very bad.
    I am considering this two ways as belows.
    1. symeteric check
    (select * from table_A@location1
    minus
    select * from table_A@location2)
    union all
    (select * from table_A@location2
    minus
    select * from table_A@location1)
    2. hash value check using dbms_utility.get_hash_value
    select sum(dbms_utility.get_hash_value(
    "column lists",1,power(2,16)-1)) xx
    from table_A@location1
    select sum(dbms_utility.get_hash_value(
    "column lists",1,power(2,16)-1)) xx
    from table_A@location2
    Which one do you think is faster?
    Additionally, is there better way to check table difference
    as quickly as possible.
    Thanks in advance.
    Have a nice day.
    Ho.
    Message was edited by:
    user507290
    Message was edited by:
    user507290

    Hello
    Another alternative may be to materialise the two remote tables localy and then do the comparison - perhaps using materialised views. If you can get the data locally, you can reliably try a few different methods and figure out which works best.
    I know MINUS can be exceptionaly quick for comparing whole result sets, but it's not suited to all cases...in the same way that using sub queries/not exists is better in some cases than others.
    HTH
    David

  • How to check tables integrity

    Hello all,
    we have a big problem in CO area. Since last week we can't calculate production order costs and product costs.
    We have check all the things we can, including notes, and the only thing we think that could solve the problem is to check the integrity of tables.
    Is there any program, transaction, or anything to make it?.
    thanks a lot.

    Hi,
    Please try this once more.
    Go to SE11.
    Enter the data dictionary table in the 'Database Table' field.
    Click 'Display' and press 'Enter'.
    The page 'Dictionary: Display Table' will open.
    Please click on the 'Entry Help/Check' tab.
    Observe the fields 'Foreign Key' and 'Check Table'.
    Reward if this is of help.

  • How to check variable if present or not ?

    I have a main form and put the :global.gdate, When I call the others form
    I want to use the :global.gdate.
    I wirte a trigger "when new form instance" for each form (except main form) so I can get :global.date.
    But I can only running this program from main form, if I am running the form without the main form, the error message :global.gdate does not exists.
    Question:
    Is it posible to check if :global.gdate is exists or not ?
    maybe somthing like :
    IF get_variable(:global.gdate) IS NULL THEN --?????????
    :global.gdate := sysdate;
    END IF;

    From Oracle documentation:
    DEFAULT_VALUE built-in
    Description
    Copies an indicated value to an indicated variable if the variable's current value is NULL. If the variable's current value is not NULL, DEFAULT_VALUE does nothing. Therefore, for text items this built-in works identically to using the COPY built-in on a NULL item. If the variable is an undefined global variable, Form Builder creates the variable.
    Syntax
    PROCEDURE DEFAULT_VALUE
    (value_string VARCHAR2,
    variable_name VARCHAR2);
    Example:
    ** Built-in:  DEFAULT_VALUE
    ** Example:   Make sure a Global variable is defined by
    **           assigning some value to it with Default_Value
    BEGIN
      ** Default the value of GLOBAL.Command_Indicator if it is
      ** NULL or does not exist.
      Default_Value('***','global.command_indicator');
      ** If the global variable equals the string we defaulted
      ** it to above, then it must have not existed before
      IF :Global.Command_Indicator = '***' THEN
        Message('You must call this screen from the Main Menu');
        RAISE Form_Trigger_Failure;
      END IF;
    END;

  • How to check patch level applied or not?

    how can i check that bellow patches are applied or not as mentioned for patch no 7427746.
    - FA.M mini-pack or later
    or
    - FIN_PF.E or later
    and
    -ATG H RUP4() or higher
    thanks

    Hi;
    how can i check that bellow patches are applied or not as mentioned for patch no 7427746.
    - FA.M mini-pack or later
    or
    - FIN_PF.E or later
    and
    -ATG H RUP4() or higherPlease check :
    - How to check which Techstack patchsets have been applied [390864.1 ]
    Regard
    Helios

  • How to check mail already read or not?

    Hi everyone
    I am developing an application using javamail api.
    I have no idea how to check mail is already read or answered or seen using javamail api.
    I need to fetch new mail every time. I used DELETE flag ,its working fine but it also delete mail permanently from inbox.
    I want to fetch new mail and already fetched mail is also reside in inbox. but not fetched next time.
    Pls help me.

    Either I'm not understanding you, or you're not understanding JavaMail.
    First, the POP3 protocol supports no permanent flags, as explained in
    http://java.sun.com/products/javamail/javadocs/com/sun/mail/pop3/package-summary.html
    You can set flags on messages, but they won't persist after you close the folder.
    If you set the DELETED flag and close the folder and expunged deleted messages,
    the messages are gone for good.
    That's not a JavaMail limitation, that's a POP3 protocol limitation.
    Again, as explained in the link above, to determine which messages are new you'll
    need to keep some state in your application about which messages you've seen
    and compare that state with the current state of the INBOX. You can use the POP3
    specific UIDL command to help with this.
    Does that help?

  • How to check oracle is running or not

    Hi,
    Can any one help me the command to check whether oracle is running or not, in UNIX flatform.How to check the Disk+Work proess is running or not.

    Option1 :Logon to SAPDBA...U will be able to see whether Oracle is running or not.
    Option 2:
    Sqlplus /nolog;
    connect / as sysdba;
    startup;
    If it is already running: you will get msg that Oracle is already running
    Oprion 3: ps -eaf|grep ora
    to determine whether disp+work is running or not:
    Option 1: ps -eaf|grep sap
    Option 2: dpmon pf = <path of instance profile>
    Reward Points if helpful!

  • How to check value is numeric or not

    hi how to check whether a value is numeric or not.
    example.  data : x type n.
              x = 12345.
    Now how to check whether X contains numeric value or not.

    Hi,
         If your type is 'N' there is no way that 'X' can have any value apart for numberics (i.e. 0 - 9).
    You can also check that as follows.
    Data: num_list(10) type c value '0123456789',
          x type n.
    X = '12345'.
    This is more useful if your X is of type C.
    if X CO num_list.
    Its only numeric
    else.
    its contains non numeric
    endif.
    Regards,
    Sesh

Maybe you are looking for

  • Ipod touch not recognized

    My Ipod touch is not recognized by Itunes or Windows Explorer. I have followed Apple's troublehsooting but it did not solve the problem. Thanks in advance for any assistance that you can provide.

  • Form submit

    Hello guys, I have got a problem with submitting a PDF. When I press the Complette button, a dialog box appears titeled "Security Warning". The message is: This document has accessed more than one site and might be trying to share data among differen

  • Getting error message "Invalid COD" when trying to download bible software..​..

    Anyone know why I can't download youverse bible software to my bb curve 8330, getting the "Invalid COD" message?

  • Weird white space around my AI file.

    Hi buddy, I just installed Illustrator CC and I got my interface look like this. Why there's a white space at the right and bottom of my document? And I don't have any trouble like this with my Photoshop and Indesign, both looks normal. I'm using DEL

  • Hardware sizing for XI

    Hi frnds Plz tell me what is server sizing information for XI development, QA and prod environments. What is the minimum and recommended configuration in each scenario and what configuration variants are most widely used. Thnx in advance Adhir