Is that for a Barcode scanner?
Regardless, a proper Setup will be to test using Hyperterminal first. If it works, try testing with Excel. If that works too, it should work on an AX grid.
If you want to Access it from Code, where is the trigger to get data from the port?